Enum NotificationRestriction
-
- All Implemented Interfaces:
public enum NotificationRestrictionLevel of restriction on notifications shown by the app for the user associated with this policy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description UNRESTRICTEDShow notifications without restriction.
BLOCK_ORG_DATAShow only modified notifications that do not contain organization data.
BLOCKEDDo not show notifications for the user associated with this policy.
-
Method Summary
Modifier and Type Method Description intgetCode()Get the encoded version of the enum. static NotificationRestrictionfromCode(int code)Get the appropriate NotificationRestriction given an encoded value. static Array<NotificationRestriction>values()Returns an array containing the constants of this enum type, in the order they're declared. static NotificationRestrictionvalueOf(String name)Returns the enum constant of this type with the specified name. -
-
Method Detail
-
getCode
int getCode()
Get the encoded version of the enum.
- Returns:
Integral form of the enum.
-
fromCode
@Nullable() static NotificationRestriction fromCode(int code)
Get the appropriate NotificationRestriction given an encoded value.
- Parameters:
code- Encoded value.- Returns:
Appropriate NotificationRestriction.
-
values
static Array<NotificationRestriction> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static NotificationRestriction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-