public interface SecurityController
Modifier and Type | Interface and Description |
---|---|
static interface |
SecurityController.SecurityControllerCallback |
Modifier and Type | Method and Description |
---|---|
void |
addCallback(SecurityController.SecurityControllerCallback callback) |
String |
getDeviceOwnerName() |
String |
getPrimaryVpnName() |
String |
getProfileOwnerName() |
String |
getProfileVpnName() |
boolean |
hasProfileOwner() |
boolean |
isDeviceManaged()
Whether the device has device owner, even if not on this user.
|
boolean |
isVpnBranded()
Whether the VPN app should use branded VPN iconography.
|
boolean |
isVpnEnabled() |
boolean |
isVpnRestricted() |
void |
onUserSwitched(int newUserId) |
void |
removeCallback(SecurityController.SecurityControllerCallback callback) |
boolean isDeviceManaged()
boolean hasProfileOwner()
String getDeviceOwnerName()
String getProfileOwnerName()
boolean isVpnEnabled()
boolean isVpnRestricted()
boolean isVpnBranded()
String getPrimaryVpnName()
String getProfileVpnName()
void onUserSwitched(int newUserId)
void addCallback(SecurityController.SecurityControllerCallback callback)
void removeCallback(SecurityController.SecurityControllerCallback callback)