Package org.robolectric.shadows
Class ShadowWindowManagerGlobal
java.lang.Object
org.robolectric.shadows.ShadowWindowManagerGlobal
@Implements(value=android.view.WindowManagerGlobal.class,
isInAndroidSdk=false)
public class ShadowWindowManagerGlobal
extends Object
Shadow for
WindowManagerGlobal.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classDelegate forIWindowSessionthat contains methods to intercept calls to the underlyingIWindowSessionand track window state. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidClears the data returned bygetLastDragClipData().protected static IWindowSessionstatic 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 ShadowWindowManagerGlobal.WindowSessionDelegateprotected static IWindowSessionstatic voidreset()
-
Field Details
-
windowSessionDelegate
-
windowSession
-
-
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(). -
getWindowSession
-
createWindowSession
-
peekWindowSession
-
getWindowManagerService
- Throws:
RemoteException
-
createWindowSessionDelegate
-
getWindowSessionDelegate
-