UserSessionScope
Constructors
Properties
Apple alert claims using this session's existing account owner; the host must retain the session.
Read-only progress of the current slow-sync attempt.
Functions
Attach one plain native view as the local camera preview. The caller owns its lifetime. Do not pass AVSVideoPreview, which attaches itself when added to a window.
Attach one plain native view as the local camera preview. The caller owns its lifetime. Do not pass AVSVideoPreview, which attaches itself when added to a window.
Attach an iOS AVSVideoView to one remote client's stream. The caller owns the view lifetime. Different native views remain attached independently, including views of the same stream. Reattaching the same native view and stream returns its existing lease, even through another PlatformView wrapper. Rebinding that view to another stream detaches its previous attachment and invalidates the old lease. If that detach fails, the previous attachment remains owned and the new stream is not attached. If the new attach fails after detach succeeds, that view remains detached. Other views are unaffected. Operations run on the main dispatcher. The caller must detach each returned lease when its view disappears.
Attach an iOS AVSVideoView to one remote client's stream. The caller owns the view lifetime. Different native views remain attached independently, including views of the same stream. Reattaching the same native view and stream returns its existing lease, even through another PlatformView wrapper. Rebinding that view to another stream detaches its previous attachment and invalidates the old lease. If that detach fails, the previous attachment remains owned and the new stream is not attached. If the new attach fails after detach succeeds, that view remains detached. Other views are unaffected. Operations run on the main dispatcher. The caller must detach each returned lease when its view disappears.
Fail this account's HTTP requests, in flight and new, as having no network until block returns.
Uses the existing account database owner, also observing sync performed by the app.
Register the identities of delivered Apple alerts before observing their canonical state.
Prioritize the exact delivered Apple call, preserving all signaling in its conversation.
Resume NSE-committed signaling using this session's existing full calling engine.
Resume after ownership returns.
Answers the share extension while the app owns this account, live or not (ADR 13). It lists the account's conversations when the extension asks, and stores handed-off shares as the composer would: now, and whenever doorbell rings. Runs until cancelled, which must happen before the app releases the account. Servers of one account take turns. A share it refuses after the extension stopped waiting goes to refused, for the app to tell the user.
The host must first cancel/join public account operations and account/global observers.
Stop sync and close its WebSocket client before another process may receive this account's events. Legacy push skips clients the backend serves over an open WebSocket, and consumable notifications need a single consumer. The native socket and the backend see the close asynchronously. Sync stays stopped, even for new requests, until resumeSync or until the returned suspension is cancelled. Failure leaves sync running.