Static
sharedConfigures the SDK with the specified options.
The configuration options.
Before using the sdk it must be configured by using this method with a valid ConnectOptions instance. It is safe to call this method repeatedly to change the options dynamically at runtime if desired.
Configures the SDK with the specified options.
The configuration options.
Before using the sdk it must be configured by using this method with a valid ConnectOptions instance. It is safe to call this method repeatedly to change the options dynamically at runtime if desired.
Sets the user's tokens.
The user's access token.
The user's refresh token.
Set the user's access and refresh tokens that are required for accessing streaming services. User tokens can be obtained by creating a user object from the backend api.
Sets the user's tokens.
The user's access token.
The user's refresh token.
Set the user's access and refresh tokens that are required for accessing streaming services. User tokens can be obtained by creating a user object from the backend api.
Requests the user to consent to the privacy policy if it has not yet been accepted.
The ticket to manually cancel the operation.
A boolean indicating whether the user consented or not.
Opens the privacy policy consent flow if the privacy policy has not yet been accepted or completes immediately with true if it has.
Requests the user to consent to the privacy policy if it has not yet been accepted.
The ticket to manually cancel the operation.
A boolean indicating whether the user consented or not.
Opens the privacy policy consent flow if the privacy policy has not yet been accepted or completes immediately with true if it has.
Link a streaming service.
The service object to link.
The ticket to manually cancel the operation.
A boolean indicating whether the service was linked or not.
Opens the service linking flow which involves a web view login for the specified 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 promise will reject.
Caution: Given the task based architecture of the sdk and the asynchronous nature of this method, care should be taken when invoking it from user interactive elements to debounce or otherwise prevent multiple invocations until the previous one completes.
Link a streaming service.
The service object to link.
The ticket to manually cancel the operation.
A boolean indicating whether the service was linked or not.
Opens the service linking flow which involves a web view login for the specified 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 promise will reject.
Caution: Given the task based architecture of the sdk and the asynchronous nature of this method, care should be taken when invoking it from user interactive elements to debounce or otherwise prevent multiple invocations until the previous one completes.
Manage a linked service.
The service object to manage.
The ticket to manually cancel the operation.
The service object that was managed.
Opens the linked service management flow which allows the user to change their profile selection and pin if supported.
Caution: Given the task based architecture of the sdk and the asynchronous nature of this method, care should be taken when invoking it from user interactive elements to debounce or otherwise prevent multiple invocations until the previous one completes.
Manage a linked service.
The service object to manage.
The ticket to manually cancel the operation.
The service object that was managed.
Opens the linked service management flow which allows the user to change their profile selection and pin if supported.
Caution: Given the task based architecture of the sdk and the asynchronous nature of this method, care should be taken when invoking it from user interactive elements to debounce or otherwise prevent multiple invocations until the previous one completes.
Unlink a linked service.
The service object to unlink.
The ticket to manually cancel the operation.
The service object that was unlinked.
Unlink a linked service.
The service object to unlink.
The ticket to manually cancel the operation.
The service object that was unlinked.
Fetch all services.
The ticket to manually cancel the operation.
All services.
Retrieves a list of all services.
Fetch all services.
The ticket to manually cancel the operation.
All services.
Retrieves a list of all services.
Fetch linked services.
The ticket to manually cancel the operation.
All linked services.
Retrieves a list of all the user's linked services.
Fetch linked services.
The ticket to manually cancel the operation.
All linked services.
Retrieves a list of all the user's linked services.
Fetch linked services.
The ticket to manually cancel the operation.
All broken services.
Retrieves a list of all the user's broken services.
Fetch linked services.
The ticket to manually cancel the operation.
All broken services.
Retrieves a list of all the user's broken services.
Fetch all streaming categories.
The ticket to manually cancel the operation.
All streaming categories.
Retrieves a list of all streaming categories.
Fetch all streaming categories.
The ticket to manually cancel the operation.
All streaming categories.
Retrieves a list of all streaming categories.
Fetch streaming category contents.
The list of categories to fetch content for.
The list of streaming services to fetch content for.
The ticket to manually cancel the operation.
The optional error handler to call when a problem occurs accessing a service.
The optional completion handler to call when retrieving content for a single category and service.
Complete fetched content for all services and all categories or an empty array if categoryServiceComplete is non-null.
Retrieves the content for the categories and services specified. serviceError will be called when a service error occurs. categoryServiceComplete will be called with the results for a single category-service pair. Specifying this callback will cause the response promise to resolve with an empty array for performance.
Fetch streaming category contents.
The list of categories to fetch content for.
The list of streaming services to fetch content for.
The ticket to manually cancel the operation.
The optional error handler to call when a problem occurs accessing a service.
The optional completion handler to call when retrieving content for a single category and service.
Complete fetched content for all services and all categories or an empty array if categoryServiceComplete is non-null.
Retrieves the content for the categories and services specified. serviceError will be called when a service error occurs. categoryServiceComplete will be called with the results for a single category-service pair. Specifying this callback will cause the response promise to resolve with an empty array for performance.
Fetch content children.
The parent content item to fetch children for.
The ticket to manually cancel the operation.
The children of the requested content item.
Retrieves the children of the given parent content object. The content object must be a folder to have children.
Examples include using a content that represents a series where the children would be its seasons, or a content that represents a season where the children would be its episodes.
Fetch content children.
The parent content item to fetch children for.
The ticket to manually cancel the operation.
The children of the requested content item.
Retrieves the children of the given parent content object. The content object must be a folder to have children.
Examples include using a content that represents a series where the children would be its seasons, or a content that represents a season where the children would be its episodes.
Fetch content details.
The content item to retrieve details for.
The ticket to manually cancel the operation.
The details of the requested content item.
Retrieves content details.
Details or additional metadata properties currently include browse path and estimated durations.
Fetch content details.
The content item to retrieve details for.
The ticket to manually cancel the operation.
The details of the requested content item.
Retrieves content details.
Details or additional metadata properties currently include browse path and estimated durations.
Search a streaming service.
The streaming service to search.
The list of streaming services to fetch content for.
The ticket to manually cancel the operation.
The optional completion handler to call when retrieving search results for a single service.
Complete search results for all services or an empty array if serviceComplete is non-null.
Searches the given services with the specified searchPhrase. serviceComplete will be called with the results for a single service. Specifying this callback will cause the response promise to resolve with an empty array for performance.
Search a streaming service.
The streaming service to search.
The list of streaming services to fetch content for.
The ticket to manually cancel the operation.
The optional completion handler to call when retrieving search results for a single service.
Complete search results for all services or an empty array if serviceComplete is non-null.
Searches the given services with the specified searchPhrase. serviceComplete will be called with the results for a single service. Specifying this callback will cause the response promise to resolve with an empty array for performance.
Fetch an image.
The image url to fetch.
The ticket to manually cancel the operation.
Image data as a base64 string.
Retrieves the image from the specified image url.
Directly fetching image urls in any other way can lead to missing data or 404s depending on the streaming service.
Fetch an image.
The image url to fetch.
The ticket to manually cancel the operation.
Image data as a base64 string.
Retrieves the image from the specified image url.
Directly fetching image urls in any other way can lead to missing data or 404s depending on the streaming service.
Younify Connect SDK main object.
Use the shared singleton instance to interact with the sdk. Before the sdk can be meaningfully used configure must be called.