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.
cameraCapturePhoto → const String
Host can delegate one-time still-photo capture to the device camera UI.
documentPdf → const String
Host opted into PDF or document viewing feature support.
fileDownload → const String
Host can stream a Publisher API response to user-visible storage.
fileUpload → const String
Host can stream a user-selected file to an accepted Publisher API.
flashlightControl → const String
Host can control the device torch while a mini-program is foregrounded.
locationCurrent → const String
Host can provide an explicitly requested one-time current location.
mediaAudio → const String
Host opted into foreground streamed audio playback support.
mediaPreview → const String
Host can render app-owned opaque temporary media references.
mediaVideo → const String
Host opted into video playback feature support.
nativeNavigation → const String
Host can open agreed native routes from mini-program actions.
qrScanner → const String
Host can scan QR codes through an explicitly installed scanner UI.
secureApi → const String
Host can proxy allowlisted secure API calls.
standardValues → const List<CapabilityId>
Stable ordering used by scaffolds and human-readable output.
systemShare → const String
Host can open the platform share chooser for accepted inert content.