System Key Management

BlockPowerKey

Block power key event.

public static void BlockPowerKey()

AllowPowerKey

Allow power key event (default).

public static void AllowPowerKey()

BlockBackKey

Block back key event.

public static void BlockBackKey()

AllowBackKey

Allow back key event (default).

public static void AllowBackKey()

BlockHomeKey

Block home key event. Long press back will send home key event.

public static void BlockHomeKey()

AllowHomeKey

Allow home key event (default).

public static void AllowHomeKey()

BlockScreenOff

Block screen off and block power key.

public static void BlockScreenOff()

AllowScreenOff

Allow screen off and allow power key.

public static void AllowScreenOff()

BlockVolumeKey

Block volume key press, but user can change volume by code.

public static void BlockVolumeKey()

AllowVolumeKey

Allow volume key press.

public static void AllowVolumeKey()

ClearOrSetAllBlockState

clear/set all system key to block state

public static void ClearOrSetAllBlockState(bool clearOrSet)

Parameter

Description

clearOrSet

  • true -> clear all system key block

  • false -> set all system key to block state

Last updated