-
Notifications
You must be signed in to change notification settings - Fork 22
/
helper.d.ts
152 lines (151 loc) · 3.57 KB
/
helper.d.ts
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
import { DetectResult } from '.';
/**
* get device type string
* @param result
* @returns {string|null}
*/
export function getDeviceType(result: DetectResult): string | null;
/**
* get device type id
* @param result
* @returns {number|null}
*/
export function getDeviceTypeId(result: DetectResult): number | null;
/**
* get device type id for name
* @param {string} name
* @returns {number|null}
*/
export function getDeviceTypeIdForName(name: string): number | null;
/**
* get client type string
* @param result
* @returns {string|null}
*/
export function getClientType(result: DetectResult): string | null;
/**
* is device type portable camera
* @param result
* @returns {boolean}
*/
export function isCamera(result: DetectResult): boolean;
/**
* is device type car
* @param result
* @returns {boolean}
*/
export function isCar(result: DetectResult): boolean;
/**
* is device type console (xBox, PlayStation, Nintendo etc)
* @param result
* @returns {boolean}
*/
export function isConsole(result: DetectResult): boolean;
/**
* is device type desktop
* @param result
* @returns {boolean}
*/
export function isDesktop(result: DetectResult): boolean;
/**
* is feature phone (push-button telephones)
* @param result
* @returns {boolean}
*/
export function isFeaturePhone(result: DetectResult): boolean;
/**
* is device type mobile (feature phone, smartphone or phablet)
* @param result
* @returns {boolean}
*/
export function isMobile(result: DetectResult): boolean;
/**
* is device type peripheral (portable terminal, portable projector)
* @param result
* @returns {boolean}
*/
export function isPeripheral(result: DetectResult): boolean;
/**
* is device type phablet
* @param result
* @returns {boolean}
*/
export function isPhablet(result: DetectResult): boolean;
/**
* is device type portable media player
* @param result
* @returns {boolean}
*/
export function isPortableMediaPlayer(result: DetectResult): boolean;
/**
* is device type smart display (LCD panel or interactive panel)
* @param result
* @returns {boolean}
*/
export function isSmartDisplay(result: DetectResult): boolean;
/**
* is device type smart speaker (Alisa, Alexa, HomePod etc)
* @param result
* @returns {boolean}
*/
export function isSmartSpeaker(result: DetectResult): boolean;
/**
* is device type smartphone
* @param result
* @returns {boolean}
*/
export function isSmartphone(result: DetectResult): boolean;
/**
* is device type table
* @param result
* @returns {boolean}
*/
export function isTablet(result: DetectResult): boolean;
/**
* is device type tv
* @param result
* @returns {boolean}
*/
export function isTv(result: DetectResult): boolean;
/**
* is device type wearable (watches, headsets)
* @param result
* @returns {boolean}
*/
export function isWearable(result: DetectResult): boolean;
/**
* is os android
* @param result
* @returns {boolean}
*/
export function isAndroid(result: DetectResult): boolean;
/**
* is client type browser
* @param result
* @returns {boolean}
*/
export function isBrowser(result: DetectResult): boolean;
/**
* is client type app (any type of client other than browser)
* @param result
* @returns {boolean}
*/
export function isApp(result: DetectResult): boolean;
/**
* is client type app desktop
* @param result
* @returns {boolean}
*/
export function isDesktopApp(result: DetectResult): boolean;
/**
* is client type app mobile
* @param result
* @returns {boolean}
*/
export function isMobileApp(result: DetectResult): boolean;
/**
* is os ios
* @param result
* @returns {boolean}
*/
export function isIOS(result: DetectResult): boolean;