linkServiceAsync

@DelicateCoroutinesApi
fun linkServiceAsync(service: StreamingService, context: Context, registry: ActivityResultRegistry): CompletableFuture<Boolean>

Link a streaming service asynchronously.

Return

True if linking is successful or False if linking was canceled.

Opens the streaming service linking flow which involves a web view login for the specified streaming service followed by profile selection and optional pin collection if supported. If linking is successful, the success flag will be True. If linking was canceled then the success flag will be False. If linking fails the future will complete exceptionally.

Parameters

service

The streaming service to link.

context

Android context that will be used to start the linking activity.

registry

ActivityResultRegistry of the current activity.