Freigeben über


UiModeManager.ActionEnterDeskMode Property

Definition

Broadcast sent when the device's UI has switched to desk mode, by being placed in a desk dock.

[Android.Runtime.Register("ACTION_ENTER_DESK_MODE")]
public static string? ActionEnterDeskMode { get; set; }
[<Android.Runtime.Register("ACTION_ENTER_DESK_MODE")>]
static member ActionEnterDeskMode : string with get, set

Property Value

Attributes

Remarks

Broadcast sent when the device's UI has switched to desk mode, by being placed in a desk dock. After sending the broadcast, the system will start the intent android.content.Intent#ACTION_MAIN with category android.content.Intent#CATEGORY_DESK_DOCK to display the desk UI, which typically what an application would implement to provide their own interface. However, applications can also monitor this Intent in order to be informed of mode changes or prevent the normal desk UI from being displayed by setting the result of the broadcast to Activity#RESULT_CANCELED.

Java documentation for android.app.UiModeManager.ACTION_ENTER_DESK_MODE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to