public static interface TrustManager.TrustListener
Modifier and Type | Method and Description |
---|---|
void |
onTrustChanged(boolean enabled,
int userId,
int flags)
Reports that the trust state has changed.
|
void |
onTrustManagedChanged(boolean enabled,
int userId)
Reports that whether trust is managed has changed
|
void onTrustChanged(boolean enabled, int userId, int flags)
enabled
- if true, the system believes the environment to be trusted.userId
- the user, for which the trust changed.flags
- flags specified by the trust agent when granting trust. See
TrustAgentService.grantTrust(CharSequence, long, int)
.void onTrustManagedChanged(boolean enabled, int userId)
enabled
- if true, at least one trust agent is managing trust.userId
- the user, for which the state changed.