/**@class android.view.WindowManager implements android.view.ViewManager The interface that apps use to talk to the window manager. </p><p> Each window manager instance is bound to a particular {@link android.view.Display}. To obtain a {@link android.view.WindowManager} for a different display, use {@link Context#createDisplayContext} to obtain a {@link Context} for that display, then use <code>Context.getSystemService(Context.WINDOW_SERVICE)</code> to get the WindowManager. </p><p> The simplest way to show a window on another display is to create a {@link Presentation}. The presentation will automatically obtain a {@link android.view.WindowManager} and {@link Context} for that display. </p> */ var WindowManager = { /**@hide */ DOCKED_INVALID : "-1", /**@hide */ DOCKED_LEFT : "1", /**@hide */ DOCKED_TOP : "2", /**@hide */ DOCKED_RIGHT : "3", /**@hide */ DOCKED_BOTTOM : "4", /**@hide */ INPUT_CONSUMER_PIP : "pip_input_consumer", /**@hide */ INPUT_CONSUMER_NAVIGATION : "nav_input_consumer", /**@hide */ INPUT_CONSUMER_WALLPAPER : "wallpaper_input_consumer", /**@hide */ INPUT_CONSUMER_RECENTS_ANIMATION : "recents_animation_input_consumer", /** Not set up for a transition. @hide */ TRANSIT_UNSET : "-1", /** No animation for transition. @hide */ TRANSIT_NONE : "0", /** A window in a new activity is being opened on top of an existing one in the same task. @hide */ TRANSIT_ACTIVITY_OPEN : "6", /** The window in the top-most activity is being closed to reveal the previous activity in the same task. @hide */ TRANSIT_ACTIVITY_CLOSE : "7", /** A window in a new task is being opened on top of an existing one in another activity's task. @hide */ TRANSIT_TASK_OPEN : "8", /** A window in the top-most activity is being closed to reveal the previous activity in a different task. @hide */ TRANSIT_TASK_CLOSE : "9", /** A window in an existing task is being displayed on top of an existing one in another activity's task. @hide */ TRANSIT_TASK_TO_FRONT : "10", /** A window in an existing task is being put below all other tasks. @hide */ TRANSIT_TASK_TO_BACK : "11", /** A window in a new activity that doesn't have a wallpaper is being opened on top of one that does, effectively closing the wallpaper. @hide */ TRANSIT_WALLPAPER_CLOSE : "12", /** A window in a new activity that does have a wallpaper is being opened on one that didn't, effectively opening the wallpaper. @hide */ TRANSIT_WALLPAPER_OPEN : "13", /** A window in a new activity is being opened on top of an existing one, and both are on top of the wallpaper. @hide */ TRANSIT_WALLPAPER_INTRA_OPEN : "14", /** The window in the top-most activity is being closed to reveal the previous activity, and both are on top of the wallpaper. @hide */ TRANSIT_WALLPAPER_INTRA_CLOSE : "15", /** A window in a new task is being opened behind an existing one in another activity's task. The new window will show briefly and then be gone. @hide */ TRANSIT_TASK_OPEN_BEHIND : "16", /** A window in a task is being animated in-place. @hide */ TRANSIT_TASK_IN_PLACE : "17", /** An activity is being relaunched (e.g. due to configuration change). @hide */ TRANSIT_ACTIVITY_RELAUNCH : "18", /** A task is being docked from recents. @hide */ TRANSIT_DOCK_TASK_FROM_RECENTS : "19", /** Keyguard is going away. @hide */ TRANSIT_KEYGUARD_GOING_AWAY : "20", /** Keyguard is going away with showing an activity behind that requests wallpaper. @hide */ TRANSIT_KEYGUARD_GOING_AWAY_ON_WALLPAPER : "21", /** Keyguard is being occluded. @hide */ TRANSIT_KEYGUARD_OCCLUDE : "22", /** Keyguard is being unoccluded. @hide */ TRANSIT_KEYGUARD_UNOCCLUDE : "23", /** A translucent activity is being opened. @hide */ TRANSIT_TRANSLUCENT_ACTIVITY_OPEN : "24", /** A translucent activity is being closed. @hide */ TRANSIT_TRANSLUCENT_ACTIVITY_CLOSE : "25", /** A crashing activity is being closed. @hide */ TRANSIT_CRASHING_ACTIVITY_CLOSE : "26", /** A task is changing windowing modes @hide */ TRANSIT_TASK_CHANGE_WINDOWING_MODE : "27", /** Transition flag: Keyguard is going away, but keeping the notification shade open @hide */ TRANSIT_FLAG_KEYGUARD_GOING_AWAY_TO_SHADE : "1", /** Transition flag: Keyguard is going away, but doesn't want an animation for it @hide */ TRANSIT_FLAG_KEYGUARD_GOING_AWAY_NO_ANIMATION : "2", /** Transition flag: Keyguard is going away while it was showing the system wallpaper. @hide */ TRANSIT_FLAG_KEYGUARD_GOING_AWAY_WITH_WALLPAPER : "4", /** Remove content mode: Indicates remove content mode is currently not defined. @hide */ REMOVE_CONTENT_MODE_UNDEFINED : "0", /** Remove content mode: Indicates that when display is removed, all its activities will be moved to the primary display and the topmost activity should become focused. @hide */ REMOVE_CONTENT_MODE_MOVE_TO_PRIMARY : "1", /** Remove content mode: Indicates that when display is removed, all its stacks and tasks will be removed, all activities will be destroyed according to the usual lifecycle. @hide */ REMOVE_CONTENT_MODE_DESTROY : "2", /** Message for taking fullscreen screenshot @hide */ TAKE_SCREENSHOT_FULLSCREEN : "1", /** Message for taking screenshot of selected region. @hide */ TAKE_SCREENSHOT_SELECTED_REGION : "2", /** @hide */ PARCEL_KEY_SHORTCUTS_ARRAY : "shortcuts_array", /**Returns the {@link android.view.Display} upon which this {@link android.view.WindowManager} instance will create new windows. <p> Despite the name of this method, the display that is returned is not necessarily the primary display of the system (see {@link android.view.Display#DEFAULT_DISPLAY}). The returned display could instead be a secondary display that this window manager instance is managing. Think of it as the display that this {@link android.view.WindowManager} instance uses by default. </p><p> To create windows on a different display, you need to obtain a {@link android.view.WindowManager} for that {@link android.view.Display}. (See the {@link android.view.WindowManager} class documentation for more information.) </p> @return {Object {android.view.Display}} The display that this window manager is managing. */ getDefaultDisplay : function( ) {}, /**Special variation of {@link #removeView} that immediately invokes the given view hierarchy's {@link android.view.View#onDetachedFromWindow() android.view.View.onDetachedFromWindow()} methods before returning. This is not for normal applications; using it correctly requires great care. @param {Object {View}} view The view to be removed. */ removeViewImmediate : function( ) {}, /**Request for keyboard shortcuts to be retrieved asynchronously. @param {Object {WindowManager.KeyboardShortcutsReceiver}} receiver The callback to be triggered when the result is ready. @hide */ requestAppKeyboardShortcuts : function( ) {}, /**Return the touch region for the current IME window, or an empty region if there is none. @return {Object {android.graphics.Region}} The region of the IME that is accepting touch inputs, or null if there is no IME, no region or there was an error. @hide */ getCurrentImeTouchRegion : function( ) {}, /**Sets that the display should show its content when non-secure keyguard is shown. @param {Number} displayId Display ID. @param {Boolean} shouldShow Indicates that the display should show its content when non-secure keyguard is shown. @see KeyguardManager#isDeviceSecure() @see KeyguardManager#isDeviceLocked() @hide */ setShouldShowWithInsecureKeyguard : function( ) {}, /**Sets that the display should show system decors. <p> System decors include status bar, navigation bar, launcher. </p> @param {Number} displayId The id of the display. @param {Boolean} shouldShow Indicates that the display should show system decors. @see #shouldShowSystemDecors(int) @hide */ setShouldShowSystemDecors : function( ) {}, /**Checks if the display supports showing system decors. <p> System decors include status bar, navigation bar, launcher. </p> @param {Number} displayId The id of the display. @see #setShouldShowSystemDecors(int, boolean) @hide */ shouldShowSystemDecors : function( ) {}, /**Sets that the display should show IME. @param {Number} displayId Display ID. @param {Boolean} shouldShow Indicates that the display should show IME. @hide */ setShouldShowIme : function( ) {}, /**Indicates that the display should show IME. @param {Number} displayId The id of the display. @return {Boolean} {@code true} if the display should show IME when an input field becomes focused on it. @hide */ shouldShowIme : function( ) {}, };