Share via


UiModeManager.EnableCarMode(EnableCarModeFlags) Method

Definition

Force device into car mode, like it had been placed in the car dock.

[Android.Runtime.Register("enableCarMode", "(I)V", "GetEnableCarMode_IHandler")]
public virtual void EnableCarMode (Android.App.EnableCarModeFlags flags);
[<Android.Runtime.Register("enableCarMode", "(I)V", "GetEnableCarMode_IHandler")>]
abstract member EnableCarMode : Android.App.EnableCarModeFlags -> unit
override this.EnableCarMode : Android.App.EnableCarModeFlags -> unit

Parameters

flags
EnableCarModeFlags

Must be 0.

Attributes

Remarks

Force device into car mode, like it had been placed in the car dock. This will cause the device to switch to the car home UI as part of the mode switch.

Java documentation for android.app.UiModeManager.enableCarMode(int).

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