capacitor-jok-helper
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -18,3 +18,4 @@ declare module "@capacitor/core" { | ||
}>; | ||
setOrientationLock(data: SetOrientationLockProps): Promise<any>; | ||
setOrientationLock(data: SetOrientationLockProps): Promise<void>; | ||
listenDeviceOrientationChanges(): Promise<void>; | ||
} | ||
@@ -33,1 +34,9 @@ export interface SetKeychainItemProps { | ||
} | ||
export interface DeviceOrientationChangeData { | ||
isPortrait: boolean; | ||
isLandscape: boolean; | ||
orientationRawValue: number; | ||
} | ||
export declare enum JokPluginEvents { | ||
DeviceOrientationChange = "DeviceOrientationChange" | ||
} |
@@ -0,1 +1,5 @@ | ||
export var JokPluginEvents; | ||
(function (JokPluginEvents) { | ||
JokPluginEvents["DeviceOrientationChange"] = "DeviceOrientationChange"; | ||
})(JokPluginEvents || (JokPluginEvents = {})); | ||
//# sourceMappingURL=definitions.js.map |
@@ -0,2 +1,3 @@ | ||
export * from './definitions'; | ||
export * from './web'; | ||
//# sourceMappingURL=index.js.map |
@@ -17,4 +17,5 @@ import { WebPlugin } from '@capacitor/core'; | ||
setOrientationLock({ orientationMask }: SetOrientationLockProps): Promise<void>; | ||
listenDeviceOrientationChanges(): Promise<void>; | ||
} | ||
declare const JokHelper: JokHelperWeb; | ||
export { JokHelper }; |
@@ -40,2 +40,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
listenDeviceOrientationChanges() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
console.log('listenDeviceOrientationChanges'); | ||
}); | ||
} | ||
} | ||
@@ -42,0 +47,0 @@ const JokHelper = new JokHelperWeb(); |
{ | ||
"name": "capacitor-jok-helper", | ||
"version": "0.1.0", | ||
"version": "0.2.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
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
123036
117