oaid_platform_interface.dart 1014 B

123456789101112131415161718192021222324252627282930313233
  1. import 'package:plugin_platform_interface/plugin_platform_interface.dart';
  2. import 'oaid_method_channel.dart';
  3. abstract class OaidPlatform extends PlatformInterface {
  4. /// Constructs a OaidPlatform.
  5. OaidPlatform() : super(token: _token);
  6. static final Object _token = Object();
  7. static OaidPlatform _instance = MethodChannelOaid();
  8. /// The default instance of [OaidPlatform] to use.
  9. ///
  10. /// Defaults to [MethodChannelOaid].
  11. static OaidPlatform get instance => _instance;
  12. /// Platform-specific implementations should set this with their own
  13. /// platform-specific class that extends [OaidPlatform] when
  14. /// they register themselves.
  15. static set instance(OaidPlatform instance) {
  16. PlatformInterface.verifyToken(instance, _token);
  17. _instance = instance;
  18. }
  19. Future<String?> getPlatformVersion() {
  20. throw UnimplementedError('platformVersion() has not been implemented.');
  21. }
  22. Future<String?> getOaid() {
  23. throw UnimplementedError('getOaid() has not been implemented.');
  24. }
  25. }