Line data Source code
1 : import 'package:flutter_chrome_cast/entities/cast_options.dart';
2 : import 'package:plugin_platform_interface/plugin_platform_interface.dart';
3 :
4 : /// Platform interface for Google Cast context functionality.
5 : ///
6 : /// This abstract class defines the contract that platform-specific implementations
7 : /// must follow for initializing and managing the Google Cast context.
8 : abstract class GoogleCastContextPlatformInterface extends PlatformInterface {
9 : /// Creates a new instance of the platform interface.
10 6 : GoogleCastContextPlatformInterface() : super(token: Object());
11 :
12 : //MARK: - CONTEXT
13 : /// Initializes the shared Google Cast context with the provided options.
14 : ///
15 : /// [castOptions] contains the configuration options for the Cast context.
16 : /// Returns true if the initialization was successful, false otherwise.
17 : Future<bool> setSharedInstanceWithOptions(GoogleCastOptions castOptions);
18 : }
|