Package-level declarations

This package contains the Younify Connect SDK main objects and types.

Types

Link copied to clipboard
object Connect

Younify Connect SDK main object.

Link copied to clipboard
data class ConnectOptions(var key: String?, var logLevel: LogLevel = LogLevel.Warning, var logListener: LogListener?, var tokenHandler: TokenHandler?, var accessToken: String?, var refreshToken: String?, var extra: Map<String, Any>?)

Younify Connect SDK startup options.

Link copied to clipboard
enum Error : Enum<Error>

SDK Error Codes.

Connect.fetchContent callback for when all categories have loaded for all streaming services.

Java functional interface for a Connect.fetchContentAsync callback that is called when all categories have loaded for all streaming services.

Java functional interface for a Connect.fetchContentAsync callback that is called when a category has loaded for a streaming service.

Link copied to clipboard

Java functional interface for a Connect.fetchContentAsync callback that is called when a problem occurs accessing a streaming service.

Link copied to clipboard
data class FetchContentCategoryResult(val category: StreamingCategory, val services: List<FetchContentCategoryServiceResult> = mutableListOf()) : Parcelable

Fetch content category result.

Connect.fetchContent callback for when a category has loaded for a streaming service.

Link copied to clipboard
data class FetchContentCategoryServiceResult(val service: StreamingService, val content: List<StreamingContent> = mutableListOf()) : Parcelable

Fetch content category service result.

Link copied to clipboard

Connect.fetchContent callback for when a problem occurs accessing a streaming service.

Link copied to clipboard

A generic exception interface that all sdk exception classes implement.

Link copied to clipboard

Collection of keys supported by GenericException.userInfo.

Link copied to clipboard
class InvalidArgumentException(val paramName: String) : GenericExceptionImpl

An invalid argument was encountered.

Link copied to clipboard
class InvalidViewContextException : GenericExceptionImpl

This view context is invalid.

Link copied to clipboard

Log level.

Link copied to clipboard
interface LogListener

Optionally implement this interface to receive log events from the sdk. The instance can be set in ConnectOptions.

Link copied to clipboard
class NetworkRequestFailedException(val statusCode: Int) : GenericExceptionImpl

A network error occurred. The user is either offline or the server returned an invalid response.

Link copied to clipboard
class OperationCanceledException(val partialResult: Any?) : GenericException

The requested operation has been canceled.

Link copied to clipboard

Callback that must be called when tokens have been renewed.

Link copied to clipboard
class SDKVersionNotSupportedException : GenericExceptionImpl

The current version of the SDK is no longer supported.

Link copied to clipboard

Connect.searchContent callback for when all streaming services have been searched.

Link copied to clipboard

Java functional interface for a Connect.searchContentAsync callback that is called when all streaming services have been searched.

Java functional interface for a Connect.searchContentAsync callback that is called when a streaming service search has completed.

Link copied to clipboard

Connect.searchContent callback for when a streaming service search has completed.

Link copied to clipboard
data class SearchContentServiceResult(val service: StreamingService, val content: List<StreamingContent> = mutableListOf()) : Parcelable

Search content service result.

Link copied to clipboard
class ServiceContentNotFoundException : GenericExceptionImpl

This service content may no longer be available.

Link copied to clipboard
class ServiceFetchingFailedException : GenericExceptionImpl

The service fetch operation failed.

Link copied to clipboard
class ServiceLinkingFailedException(serviceMessage: String?) : GenericExceptionImpl

The service linking operation failed.

Link copied to clipboard
class ServiceLoginFailedException : GenericExceptionImpl

The service login failed. The user should verify their login information.

Link copied to clipboard
class ServiceProfileNotFoundException : GenericExceptionImpl

The service profile was not found. The user should select another profile.

Link copied to clipboard
class ServiceProfilePinMismatchException : GenericExceptionImpl

The service profile pin was not correct. The user should enter their pin again.

Link copied to clipboard
class ServiceTemporarilyUnavailableException : GenericExceptionImpl

The service is temporarily unavailable.

Link copied to clipboard
class ServiceUnsupportedException : GenericExceptionImpl

The service is not supported by the SDK.

Link copied to clipboard

Well-known streaming service categories.

Link copied to clipboard
data class StreamingCategory(var name: String) : Parcelable

Streaming service content category.

Link copied to clipboard
data class StreamingContent(var type: StreamingContentType, var name: String, var title: String, var overview: String?, var duration: Long, var airDate: Instant?, var smallThumbnailUrl: String?, var largeThumbnailUrl: String?, var itemID: String?, var series: String?, var season: String?, var episode: String?, var releaseYear: String?, var contentRating: String?, var watchNowUrl: String?, var tmdbID: String?, var tmdbSeriesID: String?, var path: List<String>) : Parcelable

Streaming service content.

Link copied to clipboard
data class StreamingContentDetails(var estimatedDuration: Long?) : Parcelable

Streaming service content details.

Link copied to clipboard

Streaming service content type.

Link copied to clipboard
data class StreamingService(var id: String, var name: String, var smallThumbnailUrl: String?, var largeThumbnailUrl: String?, var overlayThumbnailUrl: String?, var isAvailable: Boolean, var link: StreamingServiceLink?) : Parcelable

Streaming service.

Link copied to clipboard
data class StreamingServiceLink(var username: String?, var profileName: String?, var profileImageUrl: String?, var isProfilePINProtected: Boolean, var isBroken: Boolean) : Parcelable

Streaming service link.

Link copied to clipboard
class SystemMaintenanceException : GenericExceptionImpl

The system is currently down for maintenance.

Link copied to clipboard
interface TokenHandler

Token handler.

Link copied to clipboard
class UnknownException : GenericExceptionImpl

An unknown error occurred.

Link copied to clipboard
class UserConsentRequiredException : GenericExceptionImpl

The user tried to perform an action that requires privacy policy consent.