Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetProvider ¶
func SetProvider(p Provider)
func StartStream ¶
func StopStream ¶
func StopStream() error
Types ¶
type PhotoData ¶
func CapturePhoto ¶
type Provider ¶
type Provider interface {
CapturePhoto() (*PhotoData, error)
StartStream(opts map[string]any) error
StopStream() error
}
Provider is a native camera backend. On mobile the shell registers one via SetProvider (CameraX on Android, AVFoundation on iOS). On desktop the webview's getUserMedia is the intended capture path, so the JS bridge falls back to it when no provider is set.
Click to show internal directories.
Click to hide internal directories.