Primitives / API
foldkit-primitives/device
Functions
enterFullscreen | Requests fullscreen for an element. The capability is feature-checked on the element itself (SVG and HTML elements both qualify), falling back to the legacy… |
exitFullscreen | Leaves fullscreen, with the same legacy fallback. Without a document API it yields Failed, not a throw. |
fullscreenChanges | Changed whenever fullscreen state flips, starting with the current answer. Without a document the stream is empty instead of throwing. |
mediaDevices | Media devices as a bundle factory: the enumerated device list in the Model, scanned on placement and re-scanned on every devicechange. Denial lands as… |
mediaStream | A camera/mic stream as a bundle factory: one live MediaStream held in a Managed Resource while the Model asks for it. Started requests, Stopped releases;… |
permissions | Permission states as a bundle factory: queried on placement, kept current by each status object's onchange. A resource holds the status objects (they cannot… |
Values
Coordinates | |
FullscreenMessage | |
Geolocation | Geolocation as a bundle: the device position in the Model, watched while placed. Permission denial is its own status (actionable UI); transient failures… |
GeolocationMessage | |
GeolocationModel | |
LiveStream | The live stream, for commands that attach it to an element. One assembly holds one. |
MediaDevice | |
MediaDevicesMessage | |
MediaDevicesModel | |
MediaStreamMessage | |
MediaStreamModel | |
PermissionsMessage | |
PermissionsModel | |
PermissionState | |
Watch | The watched statuses, for the changes subscription. One assembly holds one. |
Interfaces
MediaDevicesHandle | The slice of MediaDevices the bundle needs; satisfied by the platform object. |
MediaStreamConstraints | Which tracks mediaStream asks getUserMedia for. |
MediaStreamHandle | The live stream: its tracks stop on release. |
MediaTrackHandle | A single media track: stopped on release. |
PermissionsHandle | The slice of the Permissions API the bundle needs. |
PermissionStatusHandle | A queried permission status; onchange fires while watched. |
Types
LiveStreamService | The stream service a placed camera requires. |
WatchService | The watch service a placed Permissions bundle requires. |