forked from olcxjas-softworks/LarpixClient
Add back gesture support
This commit is contained in:
parent
3b2d474f3d
commit
38f8c147ae
1250 changed files with 39332 additions and 21 deletions
43
node_modules/@capacitor/app/dist/esm/web.js
generated
vendored
Normal file
43
node_modules/@capacitor/app/dist/esm/web.js
generated
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
import { WebPlugin } from '@capacitor/core';
|
||||
export class AppWeb extends WebPlugin {
|
||||
constructor() {
|
||||
super();
|
||||
this.handleVisibilityChange = () => {
|
||||
const data = {
|
||||
isActive: document.hidden !== true,
|
||||
};
|
||||
this.notifyListeners('appStateChange', data);
|
||||
if (document.hidden) {
|
||||
this.notifyListeners('pause', null);
|
||||
}
|
||||
else {
|
||||
this.notifyListeners('resume', null);
|
||||
}
|
||||
};
|
||||
document.addEventListener('visibilitychange', this.handleVisibilityChange, false);
|
||||
}
|
||||
exitApp() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async getInfo() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async getLaunchUrl() {
|
||||
return { url: '' };
|
||||
}
|
||||
async getState() {
|
||||
return { isActive: document.hidden !== true };
|
||||
}
|
||||
async minimizeApp() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async toggleBackButtonHandler() {
|
||||
throw this.unimplemented('Not implemented on web.');
|
||||
}
|
||||
async getAppLanguage() {
|
||||
return {
|
||||
value: navigator.language.split('-')[0].toLowerCase(),
|
||||
};
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=web.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue