react-native-google-cast
Version:
React Native wrapper for the Google Cast SDK for iOS and Android
20 lines (19 loc) • 557 B
TypeScript
import { UseCastSessionOptions } from './useCastSession';
/**
* Hook that provides the current {@link RemoteMediaClient}.
*
* @returns current client, or `null` if there's no session connected
* @example
* ```js
* import { useRemoteMediaClient } from 'react-native-google-cast'
*
* function MyComponent() {
* const client = useRemoteMediaClient()
*
* if (client) {
* client.loadMedia(...)
* }
* }
* ```
*/
export default function useRemoteMediaClient(options?: UseCastSessionOptions): import("./RemoteMediaClient").default | null;