Skip to content

connect-sdk / de.proglove.sdk / PgManager / showPickDisplayOrientationDialog

showPickDisplayOrientationDialog

fun showPickDisplayOrientationDialog(context:Context):PgError?

Calling this method will display a dialog to change the orientation of a connected display device. PgConnect version 1.2.0+ is required.

Note: When using Android's pinned application mode, this call must be called with the pinned activity as the context.

Return A PgError in case the dialog could not be shown. Possible errorCode: PgError.NOT_CONNECTED_TO_APP : Not connected to PgConnect App PgError.NOT_CONNECTED_TO_DEVICE : No device is connected PgError.NOT_SUPPORTED : A device is connected but display operations are not supported PgError.NO_OR_UNSUPPORTED_APP_VERSION : No PgConnect app detected or version is not compatible