本文整理汇总了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);
}