This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 3 files changed +30
-0
lines changed
packages/in_app_purchase/in_app_purchase_platform_interface/lib
3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file.
4
4
5
+ export 'src/in_app_purchase_addition.dart' ;
6
+ export 'src/in_app_purchase_addition_provider.dart' ;
5
7
export 'src/in_app_purchase_platform.dart' ;
6
8
export 'src/types/types.dart' ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2013 The Flutter Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ // ignore: avoid_classes_with_only_static_members
6
+ /// The interface that platform implementations must implement when they want to
7
+ /// provide platform specific in_app_purchase features.
8
+ abstract class InAppPurchaseAddition {
9
+ /// The instance containing the platform specific in_app_purchase features.
10
+ static InAppPurchaseAddition ? instance;
11
+ }
Original file line number Diff line number Diff line change
1
+ // Copyright 2013 The Flutter Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ import 'package:in_app_purchase_platform_interface/src/in_app_purchase_addition.dart' ;
6
+
7
+ /// The [InAppPurchaseAdditionProvider] is responsible for providing
8
+ /// a platform specific [InAppPurchaseAddition] .
9
+ ///
10
+ /// [InAppPurchaseAddition] implementation contain platform specific
11
+ /// features that are not available from the platform idiomatic
12
+ /// [InAppPurchasePlatform] API.
13
+ abstract class InAppPurchaseAdditionProvider {
14
+ /// Provides a platform specific implementation of the [InAppPurchaseAddition]
15
+ /// class.
16
+ T getPlatformAddition <T extends InAppPurchaseAddition >();
17
+ }
You can’t perform that action at this time.
0 commit comments