public final class KeyguardMonitor extends KeyguardUpdateMonitorCallback
Modifier and Type | Class and Description |
---|---|
static interface |
KeyguardMonitor.Callback |
Constructor and Description |
---|
KeyguardMonitor(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(KeyguardMonitor.Callback callback) |
boolean |
canSkipBouncer() |
boolean |
isDeviceInteractive() |
boolean |
isOccluded() |
boolean |
isSecure() |
boolean |
isShowing() |
void |
lock() |
void |
notifyKeyguardState(boolean showing,
boolean secure,
boolean occluded) |
void |
onTrustChanged(int userId)
Called when trust changes for a user.
|
void |
removeCallback(KeyguardMonitor.Callback callback) |
void |
unlock() |
onBootCompleted, onClockVisibilityChanged, onDevicePolicyManagerStateChanged, onDeviceProvisioned, onDreamingStateChanged, onEmergencyCallAction, onFaceUnlockStateChanged, onFingerprintAcquired, onFingerprintAuthenticated, onFingerprintAuthFailed, onFingerprintError, onFingerprintHelp, onFingerprintRunningStateChanged, onFinishedGoingToSleep, onHasLockscreenWallpaperChanged, onKeyguardBouncerChanged, onKeyguardVisibilityChanged, onKeyguardVisibilityChangedRaw, onPhoneStateChanged, onRefreshBatteryInfo, onRefreshCarrierInfo, onRingerModeChanged, onScreenTurnedOff, onScreenTurnedOn, onSetBackground, onSimStateChanged, onStartedGoingToSleep, onStartedWakingUp, onStrongAuthStateChanged, onTimeChanged, onTrustGrantedWithFlags, onTrustManagedChanged, onUserInfoChanged, onUserSwitchComplete, onUserSwitching, onUserUnlocked
public KeyguardMonitor(Context context)
public void addCallback(KeyguardMonitor.Callback callback)
public void removeCallback(KeyguardMonitor.Callback callback)
public boolean isShowing()
public boolean isSecure()
public boolean isOccluded()
public boolean canSkipBouncer()
public void unlock()
public void lock()
public void notifyKeyguardState(boolean showing, boolean secure, boolean occluded)
public void onTrustChanged(int userId)
KeyguardUpdateMonitorCallback
onTrustChanged
in class KeyguardUpdateMonitorCallback
public boolean isDeviceInteractive()