v2.7.1
advertising_id
광고 ID에 액세스하기 위한 플러터 플러그인입니다. iOS에서는 ASIdentifierManager.advertisingIdentifier, Android에서는 광고 ID를 래핑합니다.
42좋아요 10.5만30일 다운로드140Pub 점수
AndroidiOS
광고 ID에 액세스하기 위한 Flutter 플러그인입니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A Flutter plugin to access advertising ID.
Wraps ASIdentifierManager.advertisingIdentifier (on iOS) and advertising ID (on Android).
Run this command
flutter pub add advertising_id
This will add a line like this to your package's pubspec.yaml
dependencies:
....
advertising_id: ^2.7.1
AdvertisingId.idGet advertising ID.
String? advertisingId;
// Platform messages may fail, so we use a try/catch PlatformException.
try {
advertisingId = await AdvertisingId.id(true);
} on PlatformException {
advertisingId = null;
}
AdvertisingId.isLimitAdTrackingEnabledRetrieves whether the user has limit ad tracking enabled or not.
bool? isLimitAdTrackingEnabled;
// Platform messages may fail, so we use a try/catch PlatformException.
try {
isLimitAdTrackingEnabled = await AdvertisingId.isLimitAdTrackingEnabled;
} on PlatformException {
isLimitAdTrackingEnabled = false;
}
의존성 목록 1 개
{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗