setDisplayMode

Deprecated

setDisplayMode has been deprecated in favor of change(presentationMode: PresentationMode) function and it will be removed in a further release.

Replace with

change(PresentationMode.Foreground)

Set the activity display mode

Return

Boolean True if the activity was running and the display mode was successfully applied, false otherwise

Parameters

displayMode

The DisplayMode