UNPKG

react-native-google-cast

Version:
20 lines (19 loc) 557 B
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;