Otv Sdk Client
Entry point for authenticating and maintaining a session with the OpenTV IAS service.
Parameters
connection settings used to build login/refresh requests
required application context used to open SDK persistence storage
Properties
Reports whether this device supports voice input and translation.
On-device (ML Kit) translation to English. Pass it as com.nagra.opentvsdk.a2a.SessionConfig.translator to translate chat messages; language models download on first use.
Invoked after every refresh attempt, with the new access token on success or the failure cause on error. May be called from any thread.
Functions
Registers a refresh listener that is notified after every refresh attempt.
Closes the SDK client, releasing any resources.
Performs a DAS login, automatically determining the DRM type based on the presence of a CONNECT opvault resource. The file name should be "connect_opvault" and placed in the "res/raw" directory of the application. If Connect login fails, it will fall back to Widevine login.
Performs a DAS login
Returns the current access token when it is present and not expired.
Returns the SDK version string.
Returns a currently valid access token.
Returns whether the refresh expiry timestamp has passed or there is no record of a valid session.
Unregisters a previously registered refresh listener.
Signs out of the current IAS session and clears the local session state.