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.

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 searchService(service: StreamingService, searchPhrase: String): List<StreamingContent>

Search a streaming service.

Link copied to clipboard
@DelicateCoroutinesApi
fun searchServiceAsync(service: StreamingService, searchPhrase: String): CompletableFuture<List<StreamingContent>>

Search a streaming service 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.