bitmovin-player-react-native
Version:
Official React Native bindings for Bitmovin's mobile Player SDKs.
24 lines • 816 B
TypeScript
import { CustomDataConfig } from './config';
/**
* Provides the means to control the analytics collected by a `Player`.
* Use the `Player.analytics` property to access a `Player`'s `AnalyticsApi`.
*/
export declare class AnalyticsApi {
/**
* The native player id that this analytics api is attached to.
*/
playerId: string;
constructor(playerId: string);
/**
* Sends a sample with the provided custom data.
* Does not change the configured custom data of the collector or source.
*/
sendCustomDataEvent: (customData: CustomDataConfig) => Promise<void>;
/**
* Gets the current user id used by the bundled analytics instance.
*
* @returns The current user id.
*/
getUserId: () => Promise<string | null>;
}
//# sourceMappingURL=player.d.ts.map