×
注意!页面内容来自https://websitetoapk.com/docs/javascript-apis.html,本站不储存任何内容,为了更好的阅读体验进行在线解析,若有广告出现,请及时反馈。若您觉得侵犯了您的利益,请通知我们进行删除,然后访问 原网页
Make your app perform like a native app using these API access functions!
<script>
Website2APK.shareIntent();
</script>
<script>
Website2APK.showToast("This is a Toast");
</script>
<script>
Website2APK.exitApp();
</script>
<script>
Website2APK.showAboutDialog();
</script>
<script>
Website2APK.showAboutDialog("Hello ThereIt is a Custom Dialog","Title Text","OK");
</script>
<script>
Website2APK.openExternal("https://websitetoapk.com/");
</script>
<script>
Website2APK.rateUs();
</script>
<script>
Website2APK.askEnableGPS();
</script>
<script>
var devId = Website2APK.getUniqueDeviceID();
alert(devId);
</script>
<script>
var devId = Website2APK.getDeviceApiLevel();
alert(devId);
</script>
<script>
Website2APK.refreshPage();
</script>
<script>
Website2APK.clickMenuButton();
</script>
<script>
var verName = Website2APK.getAppVersionName();
alert(verName);
</script>
<script>
var verCode = Website2APK.getAppVersionCode();
alert(verCode);
</script>
<script>
var pkgname = Website2APK.getAppPackageName();
alert(pkgname);
</script>
<script>
Website2APK.printPage();
</script>
<script>
Website2APK.keepScreenOn(true); //true to keep onfalse to disable keepScreenOn
</script>
<script>
var token = Website2APK.getFirebaseDeviceToken();
</script>
<script>
Website2APK.subscribeBroadcastPush();
</script>
<script>
Website2APK.unsubscribeBroadcastPush();
</script>
<script>
Website2APK.enableShowBannerAd(false); //true to displayfalse to hide
</script>
<script>
Website2APK.showInterstitialAd();
</script>
<script>
Website2APK.disableNpa();
</script>
<script>
Website2APK.enableNpa();
</script>
<script>
var check = Website2APK.isNpaEnabled();
</script>