summaryrefslogtreecommitdiff
path: root/node_modules/@jet-app/app-store/tmp/src/foundation/wrappers/host.js
diff options
context:
space:
mode:
authorrxliuli <rxliuli@gmail.com>2025-11-04 05:03:50 +0800
committerrxliuli <rxliuli@gmail.com>2025-11-04 05:03:50 +0800
commitbce557cc2dc767628bed6aac87301a1be7c5431b (patch)
treeb51a051228d01fe3306cd7626d4a96768aadb944 /node_modules/@jet-app/app-store/tmp/src/foundation/wrappers/host.js
init commit
Diffstat (limited to 'node_modules/@jet-app/app-store/tmp/src/foundation/wrappers/host.js')
-rw-r--r--node_modules/@jet-app/app-store/tmp/src/foundation/wrappers/host.js64
1 files changed, 64 insertions, 0 deletions
diff --git a/node_modules/@jet-app/app-store/tmp/src/foundation/wrappers/host.js b/node_modules/@jet-app/app-store/tmp/src/foundation/wrappers/host.js
new file mode 100644
index 0000000..001a1e3
--- /dev/null
+++ b/node_modules/@jet-app/app-store/tmp/src/foundation/wrappers/host.js
@@ -0,0 +1,64 @@
+import { makeMetatype } from "@jet/environment/util/metatype";
+import { Wrapper } from "./wrapper";
+export class HostWrapper extends Wrapper {
+ get clientIdentifier() {
+ return this.implementation.clientIdentifier;
+ }
+ get clientVersion() {
+ return this.implementation.clientVersion;
+ }
+ get deviceLocalizedModel() {
+ return this.implementation.deviceLocalizedModel;
+ }
+ get deviceModel() {
+ return this.implementation.deviceModel;
+ }
+ get deviceModelFamily() {
+ return this.implementation.deviceModelFamily;
+ }
+ get devicePhysicalModel() {
+ return this.implementation.devicePhysicalModel;
+ }
+ get deviceMarketingFamilyName() {
+ return this.implementation.deviceMarketingFamilyName;
+ }
+ get osBuild() {
+ return this.implementation.osBuild;
+ }
+ get platform() {
+ return this.implementation.platform;
+ }
+ isOSAtLeast(majorVersion, minorVersion, patchVersion) {
+ return this.implementation.isOSAtLeast(majorVersion, minorVersion, patchVersion);
+ }
+ /** Returns `true` for iOS host. */
+ get isiOS() {
+ return this.platform === "iOS";
+ }
+ /** Returns `true` for macOS host. */
+ get isMac() {
+ return this.platform === "macOS";
+ }
+ /** Returns `true` for tvOS host. */
+ get isTV() {
+ return this.platform === "tvOS";
+ }
+ /** Returns `true` for watchOS host. */
+ get isWatch() {
+ return this.platform === "watchOS";
+ }
+ /** Returns `true` for web host. */
+ get isWeb() {
+ return this.platform === "web";
+ }
+ /** Returns `true` for Windows host. */
+ get isWindows() {
+ return this.platform === "Windows";
+ }
+ /** Returns `true` for visionOS host. */
+ get isVision() {
+ return this.platform === "xrOS";
+ }
+}
+HostWrapper.type = makeMetatype("app-store:host-wrapper");
+//# sourceMappingURL=host.js.map \ No newline at end of file