capacitor-jok-helper
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -18,4 +18,8 @@ declare module "@capacitor/core" { | ||
}>; | ||
setOrientationLock(data: SetOrientationLockProps): Promise<void>; | ||
setDeviceOrientationLock(data: SetOrientationLockProps): Promise<void>; | ||
getDeviceOrientation(): Promise<DeviceOrientationData | null>; | ||
listenDeviceOrientationChanges(): Promise<void>; | ||
isWideScreen(): Promise<{ | ||
value: boolean; | ||
}>; | ||
} | ||
@@ -37,6 +41,14 @@ export interface SetKeychainItemProps { | ||
isLandscape: boolean; | ||
orientationRawValue: number; | ||
isFlat: boolean; | ||
rawValue: number; | ||
} | ||
export interface DeviceOrientationData { | ||
isPortrait: boolean; | ||
isLandscape: boolean; | ||
isFlat: boolean; | ||
rawValue: number; | ||
orientation: string; | ||
} | ||
export declare enum JokPluginEvents { | ||
DeviceOrientationChange = "DeviceOrientationChange" | ||
} |
@@ -16,6 +16,10 @@ import { WebPlugin } from '@capacitor/core'; | ||
}>; | ||
setOrientationLock({ orientationMask }: SetOrientationLockProps): Promise<void>; | ||
setDeviceOrientationLock({ orientationMask }: SetOrientationLockProps): Promise<void>; | ||
getDeviceOrientation(): Promise<any>; | ||
listenDeviceOrientationChanges(): Promise<void>; | ||
isWideScreen(): Promise<{ | ||
value: boolean; | ||
}>; | ||
} | ||
declare const JokHelper: JokHelperWeb; | ||
export { JokHelper }; |
@@ -35,3 +35,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
setOrientationLock({ orientationMask }) { | ||
setDeviceOrientationLock({ orientationMask }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -41,2 +41,8 @@ console.log('setOrientationLock', orientationMask); | ||
} | ||
getDeviceOrientation() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
console.log('getDeviceOrientation'); | ||
return null; | ||
}); | ||
} | ||
listenDeviceOrientationChanges() { | ||
@@ -47,2 +53,7 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
isWideScreen() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return { value: false }; | ||
}); | ||
} | ||
} | ||
@@ -49,0 +60,0 @@ const JokHelper = new JokHelperWeb(); |
{ | ||
"name": "capacitor-jok-helper", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Helper functions for jok projects", | ||
@@ -5,0 +5,0 @@ "main": "dist/esm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125379
144