Package org.robolectric.shadows
Class ShadowWindowManagerGlobal
java.lang.Object
org.robolectric.shadows.ShadowWindowManagerGlobal
@Implements(value=android.view.WindowManagerGlobal.class,
isInAndroidSdk=false,
looseSignatures=true)
public class ShadowWindowManagerGlobal
extends Object
Shadow for
WindowManagerGlobal.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOngoing predictive back gesture. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidClears the data returned bygetLastDragClipData().static booleanstatic ClipDataReturns the lastClipDatapassed to a drag initiated from a call toView.startDrag(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int)orView.startDragAndDrop(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int), or null if there isn't one.static Objectprotected static IWindowSessionprotected static IWindowSessionstatic voidreset()startPredictiveBackGesture(int edge) Starts a predictive back gesture in the center of the edge.startPredictiveBackGesture(int edge, float position) Starts a predictive back gesture.
-
Constructor Details
-
ShadowWindowManagerGlobal
public ShadowWindowManagerGlobal()
-
-
Method Details
-
reset
-
getInTouchMode
public static boolean getInTouchMode() -
getLastDragClipData
Returns the lastClipDatapassed to a drag initiated from a call toView.startDrag(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int)orView.startDragAndDrop(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int), or null if there isn't one. -
clearLastDragClipData
public static void clearLastDragClipData()Clears the data returned bygetLastDragClipData(). -
startPredictiveBackGesture
Starts a predictive back gesture in the center of the edge. SeestartPredictiveBackGesture(int, float). -
startPredictiveBackGesture
public static ShadowWindowManagerGlobal.PredictiveBackGesture startPredictiveBackGesture(int edge, float position) Starts a predictive back gesture.If no active activity with a back pressed callback that supports animations is registered then null will be returned. See
ShadowWindowManagerGlobal.PredictiveBackGesture.See
ShadowApplication.setEnableOnBackInvokedCallback(boolean).- Parameters:
position- The position on edge of the window
-
getWindowSession
-
peekWindowSession
-
getWindowManagerService
- Throws:
RemoteException
-