本文整理匯總了TypeScript中@ionic-native/adjust.Adjust類的典型用法代碼示例。如果您正苦於以下問題:TypeScript Adjust類的具體用法?TypeScript Adjust怎麽用?TypeScript Adjust使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了Adjust類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: trackCallbackEvent
trackCallbackEvent() {
const adjustEvent: AdjustEvent = new AdjustEvent('34vgg9');
adjustEvent.addCallbackParameter('key', 'stuff');
adjustEvent.addCallbackParameter('x', 'y');
adjustEvent.addCallbackParameter('key', 'lock');
this.adjust.trackEvent(adjustEvent);
}
示例2: getIds
getIds() {
this.adjust.getIdfa().then((idfa) => {
console.log("[AdjustExample]: IDFA = " + idfa);
});
this.adjust.getGoogleAdId().then((gpsAdId) => {
console.log("[AdjustExample]: Google Ad Id = " + gpsAdId);
});
this.adjust.getAmazonAdId().then((gpsAdId) => {
console.log("[AdjustExample]: Amazon Ad Id = " + gpsAdId);
});
this.adjust.getAdid().then((adid) => {
console.log("[AdjustExample]: Adid = " + adid);
});
}
示例3: trackPartnerEvent
trackPartnerEvent() {
const adjustEvent: AdjustEvent = new AdjustEvent('w788qs');
adjustEvent.addPartnerParameter('foo', 'bar');
adjustEvent.addPartnerParameter('x', 'y');
adjustEvent.addPartnerParameter('foo', 'foot');
adjustEvent.addPartnerParameter('x', 'z');
this.adjust.trackEvent(adjustEvent);
}
示例4: getAttribution
getAttribution() {
this.adjust.getAttribution().then((att) => {
let alert = this.alertCtrl.create({
title: 'Adjust Attribution',
subTitle: JSON.stringify(att),
buttons: ['OK']
});
alert.present();
});
}
示例5: isSdkEnabled
isSdkEnabled() {
this.adjust.isEnabled().then((isEnabled) => {
let alert = this.alertCtrl.create({
title: 'Adjust - Is SDK Enabled?',
subTitle: 'SDK enabled = ' + isEnabled,
buttons: ['OK']
});
alert.present();
});
}
示例6: getSdkVersion
getSdkVersion() {
this.adjust.getSdkVersion().then((sdkVersion) => {
let alert = this.alertCtrl.create({
title: 'SDK Version',
subTitle: sdkVersion,
buttons: ['OK']
});
alert.present();
});
}
示例7: disableSdk
disableSdk() {
this.adjust.setEnabled(false);
}
示例8: enableSdk
enableSdk() {
this.adjust.setEnabled(true);
}
示例9: disableOfflineMode
disableOfflineMode() {
this.adjust.setOfflineMode(false);
}
示例10: enableOfflineMode
enableOfflineMode() {
this.adjust.setOfflineMode(true);
}