Private
constructorPrivate
_logPrivate
_logPrivate
_nextPrivate
_tokenPrivate
_tokenStatic
Private
instanceStatic
sharedPrivate
callConfigures 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.
Fetch linked services.
All broken services.
Retrieves a list of all the user's broken services.
Fetch all streaming categories.
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 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.
The ticket to manually cancel the operation.
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 children of the requested content item.
Retrives 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 details of the requested content item.
Retrieves content details.
Details or additional metadata properties currently include browse path and estimated durations.
Fetch an image.
The image url to fetch.
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 linked services.
All linked services.
Retrieves a list of all the user's linked services.
Fetch all services.
All services.
Retrieves a list of all services.
Link a streaming service.
The service object to link.
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.
Manage a linked service.
The service object to manage.
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.
Search a streaming service.
The streaming service to search.
The search phrase or terms.
The search results.
Searches the given service with the specified searchPhrase.
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.
Unlink a linked service.
The service object to unlink.
The service object that was unlinked.
Private
update
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.