Enum Class McpAppResourceMetadata.Permission
- All Implemented Interfaces:
Serializable, Comparable<McpAppResourceMetadata.Permission>, Constable
- Enclosing class:
McpAppResourceMetadata
public static enum McpAppResourceMetadata.Permission
extends Enum<McpAppResourceMetadata.Permission>
Browser capabilities that an Apps resource may request from its host.
This domain is closed for 4.0. Adding a permission requires an explicit domain and API-evolution amendment; raw metadata cannot bypass this domain.
This is a closed domain; exhaustive switches are supported, and any new alternative requires an explicit reviewed contract amendment.
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCamera access.Clipboard write access.Geolocation access.Microphone access. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static McpAppResourceMetadata.Permission[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CAMERA
Camera access. -
MICROPHONE
Microphone access. -
GEOLOCATION
Geolocation access. -
CLIPBOARD_WRITE
Clipboard write access.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-