File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ dependencies:
3737String? advertisingId;
3838// Platform messages may fail, so we use a try/catch PlatformException.
3939try {
40- advertisingId = await FlutterAdvertisingId ().getAdvertisingId(true);
40+ advertisingId = await AdvertisingId ().getAdvertisingId(true);
4141} on PlatformException {
4242 advertisingId = null;
4343}
@@ -51,7 +51,7 @@ Retrieves whether the user has limit ad tracking enabled or not.
5151bool? isLimitAdTrackingEnabled;
5252// Platform messages may fail, so we use a try/catch PlatformException.
5353try {
54- isLimitAdTrackingEnabled = await FlutterAdvertisingId ().limitAdTrackingEnabled;
54+ isLimitAdTrackingEnabled = await AdvertisingId ().limitAdTrackingEnabled;
5555} on PlatformException {
5656 isLimitAdTrackingEnabled = false;
5757}
@@ -63,7 +63,7 @@ Retrieves whether the user has limit ad tracking enabled or not.
6363
6464``` dart
6565
66- final authorizationStatus = await FlutterAdvertisingId ().authorizationStatus;
66+ final authorizationStatus = await AdvertisingId ().authorizationStatus;
6767
6868```
6969
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ void main() {
1616 IntegrationTestWidgetsFlutterBinding .ensureInitialized ();
1717
1818 testWidgets ('getPlatformVersion test' , (WidgetTester tester) async {
19- final FlutterAdvertisingId plugin = FlutterAdvertisingId ();
19+ final AdvertisingId plugin = AdvertisingId ();
2020 final String ? version = await plugin.getAdvertisingId ();
2121 // The version string depends on the host platform running the test, so
2222 // just assert that some non-empty string is returned.
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class MyApp extends StatefulWidget {
1818class _MyAppState extends State <MyApp > {
1919 String _platformVersion = 'Unknown' ;
2020 String _status = 'Unknown' ;
21- final _flutterAdvertisingIdPlugin = FlutterAdvertisingId ();
21+ final _flutterAdvertisingIdPlugin = AdvertisingId ();
2222
2323 @override
2424 void initState () {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import 'flutter_advertising_id_platform_interface.dart';
22
33/// A class that provides methods to interact with the advertising ID and
44/// limit ad tracking settings of the platform.
5- class FlutterAdvertisingId {
5+ class AdvertisingId {
66 /// Retrieves the advertising ID of the device.
77 ///
88 /// If [requestTrackingAuthorization] is set to `true` , it will request
You can’t perform that action at this time.
0 commit comments