CapabilityIds class abstract final

Standard capability IDs used by published mini-program manifests.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

isValid(CapabilityId value) bool
Returns whether value is a valid capability ID.
normalize(CapabilityId value) CapabilityId
Normalizes and validates a string capability ID.
normalizeAll(Iterable<Object?> values) List<CapabilityId>
Normalizes a list of capability values for constructors and JSON.
normalizeObject(Object? value) CapabilityId
Normalizes either a new string ID or a deprecated Capability value.

Constants

analytics → const String
Host can receive analytics events from the mini-program runtime.
auth → const String
Host can provide publisher-owned or host-owned authentication support.
browserWebview → const String
Host opted into embedded browser or webview feature support.
documentPdf → const String
Host opted into PDF or document viewing feature support.
mediaVideo → const String
Host opted into video playback feature support.
nativeNavigation → const String
Host can open agreed native routes from mini-program actions.
secureApi → const String
Host can proxy allowlisted secure API calls.
standardValues → const List<CapabilityId>
Stable ordering used by scaffolds and human-readable output.