Connect

object Connect

Younify Connect SDK main object.

Use the Connect object singleton instance to interact with the sdk. Before the sdk can be meaningfully used configure must be called.

Caution: When invoking a method, the sdk uses a limited task based processing architecture that may delay the execution of new operations until previous ones complete. Special care should be taken when performing sdk operations in the background while allowing the user to interact in the foreground. Long running background operations could negatively impact the responsiveness of your app. If you choose to use background operations, consider making them as short as possible or cancel them when users interact in the foreground.

Functions

Link copied to clipboard

Configures the sdk with the specified options.

Link copied to clipboard

Fetch broken streaming services.

Link copied to clipboard

Fetch broken streaming services asynchronously.

Link copied to clipboard

Fetch all streaming categories.

Link copied to clipboard

Fetch all streaming categories asynchronously.

Link copied to clipboard

Fetch streaming category contents.

Link copied to clipboard

Fetch streaming category content asynchronously.

Link copied to clipboard

Fetch streaming content children.

Link copied to clipboard

Fetch streaming content children asynchronously.

Link copied to clipboard

Fetch streaming content details.

Link copied to clipboard

Fetch streaming content details asynchronously.

Link copied to clipboard
suspend fun fetchImage(url: String): ByteArray?

Fetch an image.

Link copied to clipboard
@DelicateCoroutinesApi
fun fetchImageAsync(url: String): CompletableFuture<ByteArray?>

Fetch an image asynchronously.

Link copied to clipboard

Fetch linked streaming services.

Link copied to clipboard

Fetch linked streaming services asynchronously.

Link copied to clipboard

Fetch all streaming services.

Link copied to clipboard

Fetch all streaming services asynchronously.

Link copied to clipboard
suspend fun linkService(service: StreamingService, context: Context, registry: ActivityResultRegistry): Boolean

Link a streaming service.

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

Link a streaming service asynchronously.

Link copied to clipboard
suspend fun manageLinkedService(service: StreamingService, context: Context, registry: ActivityResultRegistry)

Manage a linked streaming service.

Link copied to clipboard
@DelicateCoroutinesApi
fun manageLinkedServiceAsync(service: StreamingService, context: Context, registry: ActivityResultRegistry): CompletableFuture<Void?>

Manage a linked streaming service asynchronously.

Link copied to clipboard
suspend fun requestUserConsent(context: Context, registry: ActivityResultRegistry): Boolean

Requests the user to consent to the privacy policy if it has not yet been accepted.

Link copied to clipboard
@DelicateCoroutinesApi
fun requestUserConsentAsync(context: Context, registry: ActivityResultRegistry): CompletableFuture<Boolean>

Requests the user to consent to the privacy policy if it has not yet been accepted.

Link copied to clipboard

Search streaming services.

Link copied to clipboard

Search streaming services asynchronously.

Link copied to clipboard
fun setUserTokens(accessToken: String?, refreshToken: String?)

Sets the user's tokens.

Link copied to clipboard
suspend fun unlinkService(service: StreamingService)

Unlink a linked streaming service.

Link copied to clipboard
@DelicateCoroutinesApi
fun unlinkServiceAsync(service: StreamingService): CompletableFuture<Void?>

Unlink a linked streaming service asynchronously.