Skip to content

Commit cda3fc4

Browse files
committed
Implementation class is renamed to AdvertisingId
1 parent 637f658 commit cda3fc4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies:
3737
String? advertisingId;
3838
// Platform messages may fail, so we use a try/catch PlatformException.
3939
try {
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.
5151
bool? isLimitAdTrackingEnabled;
5252
// Platform messages may fail, so we use a try/catch PlatformException.
5353
try {
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

example/integration_test/plugin_integration_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MyApp extends StatefulWidget {
1818
class _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() {

lib/flutter_advertising_id.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)