blob: 001a1e387ea5d31ccd8e68efecfd17f7fcf28e26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
|