@tokamakdev/plugin-local-authentication 0.1.0-beta.107 → 0.1.0-beta.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/android/Bindings.kt +271 -0
- package/android/LocalAuthenticationPlugin.kt +5 -4
- package/android/bindings.ts +1144 -0
- package/apple/Bindings.swift +530 -0
- package/apple/LocalAuthenticationPlugin.swift +5 -3
- package/apple/bindings.ts +721 -0
- package/package.json +5 -3
- package/src/index.ts +4 -4
- package/tokamak-plugin.json +39 -4
|
@@ -0,0 +1,1144 @@
|
|
|
1
|
+
// Generated by `tok bindings` from the Android 35 SDK: android.hardware.biometrics, android.content.Context, android.os.CancellationSignal, java.util.concurrent.Executor. Do not edit.
|
|
2
|
+
import { Bindings, NativeObject, type Classes, type TokamakContext } from "@tokamakdev/plugin/bindings";
|
|
3
|
+
|
|
4
|
+
const bindings = new Bindings("local-authentication/android", () => classes);
|
|
5
|
+
|
|
6
|
+
/** Android API 29+ */
|
|
7
|
+
export class BiometricManager extends NativeObject {
|
|
8
|
+
/** Android API 29+ */
|
|
9
|
+
static readonly BIOMETRIC_ERROR_HW_UNAVAILABLE = 1;
|
|
10
|
+
|
|
11
|
+
/** Android API 29+ */
|
|
12
|
+
static readonly BIOMETRIC_ERROR_NONE_ENROLLED = 11;
|
|
13
|
+
|
|
14
|
+
/** Android API 29+ */
|
|
15
|
+
static readonly BIOMETRIC_ERROR_NO_HARDWARE = 12;
|
|
16
|
+
|
|
17
|
+
/** Android API 30+ */
|
|
18
|
+
static readonly BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED = 15;
|
|
19
|
+
|
|
20
|
+
/** Android API 35+ */
|
|
21
|
+
static readonly BIOMETRIC_NO_AUTHENTICATION = -1;
|
|
22
|
+
|
|
23
|
+
/** Android API 29+ */
|
|
24
|
+
static readonly BIOMETRIC_SUCCESS = 0;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Android API 29+
|
|
28
|
+
* @deprecated
|
|
29
|
+
*/
|
|
30
|
+
canAuthenticate(): Promise<number>;
|
|
31
|
+
/** Android API 30+ */
|
|
32
|
+
canAuthenticate(authenticators: number): Promise<number>;
|
|
33
|
+
canAuthenticate(...args: unknown[]): Promise<unknown> {
|
|
34
|
+
return bindings.call(this, bindings.overload(args, [
|
|
35
|
+
["BiometricManager#canAuthenticate()I", []],
|
|
36
|
+
["BiometricManager#canAuthenticate(I)I", [["number"]]],
|
|
37
|
+
]), args);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Android API 31+ */
|
|
41
|
+
getStrings(authenticators: number): Promise<BiometricManager$Strings> {
|
|
42
|
+
return bindings.call(this, "BiometricManager#getStrings(I)Landroid/hardware/biometrics/BiometricManager$Strings;", [authenticators]);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** Android API 35+ */
|
|
46
|
+
getLastAuthenticationTime(authenticators: number): Promise<number> {
|
|
47
|
+
return bindings.call(this, "BiometricManager#getLastAuthenticationTime(I)J", [authenticators]);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Android API 30+ */
|
|
52
|
+
export class BiometricManager$Authenticators extends NativeObject {
|
|
53
|
+
/** Android API 30+ */
|
|
54
|
+
static readonly BIOMETRIC_STRONG = 15;
|
|
55
|
+
|
|
56
|
+
/** Android API 30+ */
|
|
57
|
+
static readonly BIOMETRIC_WEAK = 255;
|
|
58
|
+
|
|
59
|
+
/** Android API 30+ */
|
|
60
|
+
static readonly DEVICE_CREDENTIAL = 32768;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** Android API 31+ */
|
|
64
|
+
export class BiometricManager$Strings extends NativeObject {
|
|
65
|
+
/** Android API 31+ */
|
|
66
|
+
getButtonLabel(): Promise<string | null> {
|
|
67
|
+
return bindings.call(this, "BiometricManager.Strings#getButtonLabel()Ljava/lang/CharSequence;", []);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** Android API 31+ */
|
|
71
|
+
getPromptMessage(): Promise<string | null> {
|
|
72
|
+
return bindings.call(this, "BiometricManager.Strings#getPromptMessage()Ljava/lang/CharSequence;", []);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** Android API 31+ */
|
|
76
|
+
getSettingName(): Promise<string | null> {
|
|
77
|
+
return bindings.call(this, "BiometricManager.Strings#getSettingName()Ljava/lang/CharSequence;", []);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** Android API 28+ */
|
|
82
|
+
export class BiometricPrompt extends NativeObject {
|
|
83
|
+
/** Android API 30+ */
|
|
84
|
+
static readonly AUTHENTICATION_RESULT_TYPE_BIOMETRIC = 2;
|
|
85
|
+
|
|
86
|
+
/** Android API 30+ */
|
|
87
|
+
static readonly AUTHENTICATION_RESULT_TYPE_DEVICE_CREDENTIAL = 1;
|
|
88
|
+
|
|
89
|
+
/** Android API 28+ */
|
|
90
|
+
static readonly BIOMETRIC_ACQUIRED_GOOD = 0;
|
|
91
|
+
|
|
92
|
+
/** Android API 28+ */
|
|
93
|
+
static readonly BIOMETRIC_ACQUIRED_IMAGER_DIRTY = 3;
|
|
94
|
+
|
|
95
|
+
/** Android API 28+ */
|
|
96
|
+
static readonly BIOMETRIC_ACQUIRED_INSUFFICIENT = 2;
|
|
97
|
+
|
|
98
|
+
/** Android API 28+ */
|
|
99
|
+
static readonly BIOMETRIC_ACQUIRED_PARTIAL = 1;
|
|
100
|
+
|
|
101
|
+
/** Android API 28+ */
|
|
102
|
+
static readonly BIOMETRIC_ACQUIRED_TOO_FAST = 5;
|
|
103
|
+
|
|
104
|
+
/** Android API 28+ */
|
|
105
|
+
static readonly BIOMETRIC_ACQUIRED_TOO_SLOW = 4;
|
|
106
|
+
|
|
107
|
+
/** Android API 28+ */
|
|
108
|
+
static readonly BIOMETRIC_ERROR_CANCELED = 5;
|
|
109
|
+
|
|
110
|
+
/** Android API 28+ */
|
|
111
|
+
static readonly BIOMETRIC_ERROR_HW_NOT_PRESENT = 12;
|
|
112
|
+
|
|
113
|
+
/** Android API 28+ */
|
|
114
|
+
static readonly BIOMETRIC_ERROR_HW_UNAVAILABLE = 1;
|
|
115
|
+
|
|
116
|
+
/** Android API 28+ */
|
|
117
|
+
static readonly BIOMETRIC_ERROR_LOCKOUT = 7;
|
|
118
|
+
|
|
119
|
+
/** Android API 28+ */
|
|
120
|
+
static readonly BIOMETRIC_ERROR_LOCKOUT_PERMANENT = 9;
|
|
121
|
+
|
|
122
|
+
/** Android API 28+ */
|
|
123
|
+
static readonly BIOMETRIC_ERROR_NO_BIOMETRICS = 11;
|
|
124
|
+
|
|
125
|
+
/** Android API 29+ */
|
|
126
|
+
static readonly BIOMETRIC_ERROR_NO_DEVICE_CREDENTIAL = 14;
|
|
127
|
+
|
|
128
|
+
/** Android API 28+ */
|
|
129
|
+
static readonly BIOMETRIC_ERROR_NO_SPACE = 4;
|
|
130
|
+
|
|
131
|
+
/** Android API 30+ */
|
|
132
|
+
static readonly BIOMETRIC_ERROR_SECURITY_UPDATE_REQUIRED = 15;
|
|
133
|
+
|
|
134
|
+
/** Android API 28+ */
|
|
135
|
+
static readonly BIOMETRIC_ERROR_TIMEOUT = 3;
|
|
136
|
+
|
|
137
|
+
/** Android API 28+ */
|
|
138
|
+
static readonly BIOMETRIC_ERROR_UNABLE_TO_PROCESS = 2;
|
|
139
|
+
|
|
140
|
+
/** Android API 28+ */
|
|
141
|
+
static readonly BIOMETRIC_ERROR_USER_CANCELED = 10;
|
|
142
|
+
|
|
143
|
+
/** Android API 28+ */
|
|
144
|
+
static readonly BIOMETRIC_ERROR_VENDOR = 8;
|
|
145
|
+
|
|
146
|
+
/** Android API 35+ */
|
|
147
|
+
static readonly BIOMETRIC_NO_AUTHENTICATION = -1;
|
|
148
|
+
|
|
149
|
+
/** Android API 28+ */
|
|
150
|
+
authenticate(crypto: BiometricPrompt$CryptoObject, cancel: CancellationSignal, executor: Executor, callback: BiometricPrompt$AuthenticationCallback): Promise<void>;
|
|
151
|
+
/** Android API 28+ */
|
|
152
|
+
authenticate(cancel: CancellationSignal, executor: Executor, callback: BiometricPrompt$AuthenticationCallback): Promise<void>;
|
|
153
|
+
authenticate(...args: unknown[]): Promise<unknown> {
|
|
154
|
+
return bindings.call(this, bindings.overload(args, [
|
|
155
|
+
["BiometricPrompt#authenticate(Landroid/hardware/biometrics/BiometricPrompt$CryptoObject;Landroid/os/CancellationSignal;Ljava/util/concurrent/Executor;Landroid/hardware/biometrics/BiometricPrompt$AuthenticationCallback;)V", [[BiometricPrompt$CryptoObject], [CancellationSignal], [Executor], [BiometricPrompt$AuthenticationCallback]]],
|
|
156
|
+
["BiometricPrompt#authenticate(Landroid/os/CancellationSignal;Ljava/util/concurrent/Executor;Landroid/hardware/biometrics/BiometricPrompt$AuthenticationCallback;)V", [[CancellationSignal], [Executor], [BiometricPrompt$AuthenticationCallback]]],
|
|
157
|
+
]), args);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/** Android API 30+ */
|
|
161
|
+
getTitle(): Promise<string> {
|
|
162
|
+
return bindings.call(this, "BiometricPrompt#getTitle()Ljava/lang/CharSequence;", []);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** Android API 30+ */
|
|
166
|
+
getSubtitle(): Promise<string | null> {
|
|
167
|
+
return bindings.call(this, "BiometricPrompt#getSubtitle()Ljava/lang/CharSequence;", []);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/** Android API 30+ */
|
|
171
|
+
getDescription(): Promise<string | null> {
|
|
172
|
+
return bindings.call(this, "BiometricPrompt#getDescription()Ljava/lang/CharSequence;", []);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/** Android API 30+ */
|
|
176
|
+
getNegativeButtonText(): Promise<string | null> {
|
|
177
|
+
return bindings.call(this, "BiometricPrompt#getNegativeButtonText()Ljava/lang/CharSequence;", []);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/** Android API 30+ */
|
|
181
|
+
isConfirmationRequired(): Promise<boolean> {
|
|
182
|
+
return bindings.call(this, "BiometricPrompt#isConfirmationRequired()Z", []);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** Android API 30+ */
|
|
186
|
+
getAllowedAuthenticators(): Promise<number> {
|
|
187
|
+
return bindings.call(this, "BiometricPrompt#getAllowedAuthenticators()I", []);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/** Android API 35+ */
|
|
191
|
+
getLogoRes(): Promise<number> {
|
|
192
|
+
return bindings.call(this, "BiometricPrompt#getLogoRes()I", []);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** Android API 35+ */
|
|
196
|
+
getLogoDescription(): Promise<string | null> {
|
|
197
|
+
return bindings.call(this, "BiometricPrompt#getLogoDescription()Ljava/lang/String;", []);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/** Android API 35+ */
|
|
201
|
+
getContentView(): Promise<PromptContentView | null> {
|
|
202
|
+
return bindings.call(this, "BiometricPrompt#getContentView()Landroid/hardware/biometrics/PromptContentView;", []);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/** Android API 28+ */
|
|
207
|
+
export interface BiometricPrompt$AuthenticationCallbackMethods {
|
|
208
|
+
/** Android API 28+ */
|
|
209
|
+
onAuthenticationError?(errorCode: number, errString: string | null): void | Promise<void>;
|
|
210
|
+
/** Android API 28+ */
|
|
211
|
+
onAuthenticationHelp?(helpCode: number, helpString: string | null): void | Promise<void>;
|
|
212
|
+
/** Android API 28+ */
|
|
213
|
+
onAuthenticationSucceeded?(result: BiometricPrompt$AuthenticationResult | null): void | Promise<void>;
|
|
214
|
+
/** Android API 28+ */
|
|
215
|
+
onAuthenticationFailed?(): void | Promise<void>;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/** Android API 28+ */
|
|
219
|
+
export class BiometricPrompt$AuthenticationCallback extends NativeObject {
|
|
220
|
+
/** A native object whose methods call `handlers`. */
|
|
221
|
+
static implement(ctx: TokamakContext, handlers: BiometricPrompt$AuthenticationCallbackMethods): Promise<BiometricPrompt$AuthenticationCallback> {
|
|
222
|
+
return bindings.implement(ctx, BiometricPrompt$AuthenticationCallback, "BiometricPrompt.AuthenticationCallback", ["onAuthenticationError", "onAuthenticationHelp", "onAuthenticationSucceeded", "onAuthenticationFailed"], handlers);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/** Android API 28+ */
|
|
226
|
+
onAuthenticationError(errorCode: number, errString: string | null): Promise<void> {
|
|
227
|
+
return bindings.call(this, "BiometricPrompt.AuthenticationCallback#onAuthenticationError(ILjava/lang/CharSequence;)V", [errorCode, errString]);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/** Android API 28+ */
|
|
231
|
+
onAuthenticationHelp(helpCode: number, helpString: string | null): Promise<void> {
|
|
232
|
+
return bindings.call(this, "BiometricPrompt.AuthenticationCallback#onAuthenticationHelp(ILjava/lang/CharSequence;)V", [helpCode, helpString]);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/** Android API 28+ */
|
|
236
|
+
onAuthenticationSucceeded(result: BiometricPrompt$AuthenticationResult | null): Promise<void> {
|
|
237
|
+
return bindings.call(this, "BiometricPrompt.AuthenticationCallback#onAuthenticationSucceeded(Landroid/hardware/biometrics/BiometricPrompt$AuthenticationResult;)V", [result]);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/** Android API 28+ */
|
|
241
|
+
onAuthenticationFailed(): Promise<void> {
|
|
242
|
+
return bindings.call(this, "BiometricPrompt.AuthenticationCallback#onAuthenticationFailed()V", []);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/** Android API 28+ */
|
|
247
|
+
export class BiometricPrompt$AuthenticationResult extends NativeObject {
|
|
248
|
+
/** Android API 28+ */
|
|
249
|
+
getCryptoObject(): Promise<BiometricPrompt$CryptoObject | null> {
|
|
250
|
+
return bindings.call(this, "BiometricPrompt.AuthenticationResult#getCryptoObject()Landroid/hardware/biometrics/BiometricPrompt$CryptoObject;", []);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/** Android API 30+ */
|
|
254
|
+
getAuthenticationType(): Promise<number> {
|
|
255
|
+
return bindings.call(this, "BiometricPrompt.AuthenticationResult#getAuthenticationType()I", []);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/** Android API 28+ */
|
|
260
|
+
export class BiometricPrompt$Builder extends NativeObject {
|
|
261
|
+
/** Android API 28+ */
|
|
262
|
+
static new(ctx: TokamakContext, context: Context | null): Promise<BiometricPrompt$Builder> {
|
|
263
|
+
return bindings.call(ctx, "BiometricPrompt.Builder#<init>(Landroid/content/Context;)V", [context]);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/** Android API 28+ */
|
|
267
|
+
setTitle(title: string): Promise<BiometricPrompt$Builder> {
|
|
268
|
+
return bindings.call(this, "BiometricPrompt.Builder#setTitle(Ljava/lang/CharSequence;)Landroid/hardware/biometrics/BiometricPrompt$Builder;", [title]);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/** Android API 28+ */
|
|
272
|
+
setSubtitle(subtitle: string): Promise<BiometricPrompt$Builder> {
|
|
273
|
+
return bindings.call(this, "BiometricPrompt.Builder#setSubtitle(Ljava/lang/CharSequence;)Landroid/hardware/biometrics/BiometricPrompt$Builder;", [subtitle]);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/** Android API 28+ */
|
|
277
|
+
setDescription(description: string): Promise<BiometricPrompt$Builder> {
|
|
278
|
+
return bindings.call(this, "BiometricPrompt.Builder#setDescription(Ljava/lang/CharSequence;)Landroid/hardware/biometrics/BiometricPrompt$Builder;", [description]);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/** Android API 28+ */
|
|
282
|
+
build(): Promise<BiometricPrompt> {
|
|
283
|
+
return bindings.call(this, "BiometricPrompt.Builder#build()Landroid/hardware/biometrics/BiometricPrompt;", []);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** Android API 29+ */
|
|
287
|
+
setConfirmationRequired(requireConfirmation: boolean): Promise<BiometricPrompt$Builder> {
|
|
288
|
+
return bindings.call(this, "BiometricPrompt.Builder#setConfirmationRequired(Z)Landroid/hardware/biometrics/BiometricPrompt$Builder;", [requireConfirmation]);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Android API 29+
|
|
293
|
+
* @deprecated
|
|
294
|
+
*/
|
|
295
|
+
setDeviceCredentialAllowed(allowed: boolean): Promise<BiometricPrompt$Builder> {
|
|
296
|
+
return bindings.call(this, "BiometricPrompt.Builder#setDeviceCredentialAllowed(Z)Landroid/hardware/biometrics/BiometricPrompt$Builder;", [allowed]);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/** Android API 30+ */
|
|
300
|
+
setAllowedAuthenticators(authenticators: number): Promise<BiometricPrompt$Builder> {
|
|
301
|
+
return bindings.call(this, "BiometricPrompt.Builder#setAllowedAuthenticators(I)Landroid/hardware/biometrics/BiometricPrompt$Builder;", [authenticators]);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/** Android API 35+ */
|
|
305
|
+
setLogoRes(logoRes: number): Promise<BiometricPrompt$Builder> {
|
|
306
|
+
return bindings.call(this, "BiometricPrompt.Builder#setLogoRes(I)Landroid/hardware/biometrics/BiometricPrompt$Builder;", [logoRes]);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/** Android API 35+ */
|
|
310
|
+
setLogoDescription(logoDescription: string): Promise<BiometricPrompt$Builder> {
|
|
311
|
+
return bindings.call(this, "BiometricPrompt.Builder#setLogoDescription(Ljava/lang/String;)Landroid/hardware/biometrics/BiometricPrompt$Builder;", [logoDescription]);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/** Android API 35+ */
|
|
315
|
+
setContentView(view: PromptContentView): Promise<BiometricPrompt$Builder> {
|
|
316
|
+
return bindings.call(this, "BiometricPrompt.Builder#setContentView(Landroid/hardware/biometrics/PromptContentView;)Landroid/hardware/biometrics/BiometricPrompt$Builder;", [view]);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/** Android API 28+ */
|
|
321
|
+
export class BiometricPrompt$CryptoObject extends NativeObject {
|
|
322
|
+
/** Android API 35+ */
|
|
323
|
+
static new(ctx: TokamakContext, operationHandle: number): Promise<BiometricPrompt$CryptoObject> {
|
|
324
|
+
return bindings.call(ctx, "BiometricPrompt.CryptoObject#<init>(J)V", [operationHandle]);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/** Android API 35+ */
|
|
328
|
+
getOperationHandle(): Promise<number> {
|
|
329
|
+
return bindings.call(this, "BiometricPrompt.CryptoObject#getOperationHandle()J", []);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/** Android API 35+ */
|
|
334
|
+
export class PromptContentItem extends NativeObject {
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/** Android API 35+ */
|
|
338
|
+
export class PromptContentItemBulletedText extends NativeObject {
|
|
339
|
+
/** Android API 35+ */
|
|
340
|
+
static new(ctx: TokamakContext, text: string): Promise<PromptContentItemBulletedText> {
|
|
341
|
+
return bindings.call(ctx, "PromptContentItemBulletedText#<init>(Ljava/lang/String;)V", [text]);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/** Android API 35+ */
|
|
345
|
+
describeContents(): Promise<number> {
|
|
346
|
+
return bindings.call(this, "PromptContentItemBulletedText#describeContents()I", []);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/** Android API 35+ */
|
|
351
|
+
export class PromptContentItemPlainText extends NativeObject {
|
|
352
|
+
/** Android API 35+ */
|
|
353
|
+
static new(ctx: TokamakContext, text: string): Promise<PromptContentItemPlainText> {
|
|
354
|
+
return bindings.call(ctx, "PromptContentItemPlainText#<init>(Ljava/lang/String;)V", [text]);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/** Android API 35+ */
|
|
358
|
+
describeContents(): Promise<number> {
|
|
359
|
+
return bindings.call(this, "PromptContentItemPlainText#describeContents()I", []);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/** Android API 35+ */
|
|
364
|
+
export class PromptContentView extends NativeObject {
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/** Android API 35+ */
|
|
368
|
+
export class PromptContentViewWithMoreOptionsButton extends NativeObject {
|
|
369
|
+
/** Android API 35+ */
|
|
370
|
+
getDescription(): Promise<string | null> {
|
|
371
|
+
return bindings.call(this, "PromptContentViewWithMoreOptionsButton#getDescription()Ljava/lang/String;", []);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/** Android API 35+ */
|
|
375
|
+
describeContents(): Promise<number> {
|
|
376
|
+
return bindings.call(this, "PromptContentViewWithMoreOptionsButton#describeContents()I", []);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/** Android API 35+ */
|
|
381
|
+
export class PromptContentViewWithMoreOptionsButton$Builder extends NativeObject {
|
|
382
|
+
/** Android API 35+ */
|
|
383
|
+
static new(ctx: TokamakContext): Promise<PromptContentViewWithMoreOptionsButton$Builder> {
|
|
384
|
+
return bindings.call(ctx, "PromptContentViewWithMoreOptionsButton.Builder#<init>()V", []);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/** Android API 35+ */
|
|
388
|
+
setDescription(description: string): Promise<PromptContentViewWithMoreOptionsButton$Builder> {
|
|
389
|
+
return bindings.call(this, "PromptContentViewWithMoreOptionsButton.Builder#setDescription(Ljava/lang/String;)Landroid/hardware/biometrics/PromptContentViewWithMoreOptionsButton$Builder;", [description]);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/** Android API 35+ */
|
|
393
|
+
build(): Promise<PromptContentViewWithMoreOptionsButton> {
|
|
394
|
+
return bindings.call(this, "PromptContentViewWithMoreOptionsButton.Builder#build()Landroid/hardware/biometrics/PromptContentViewWithMoreOptionsButton;", []);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/** Android API 35+ */
|
|
399
|
+
export class PromptVerticalListContentView extends NativeObject {
|
|
400
|
+
/** Android API 35+ */
|
|
401
|
+
static getMaxItemCount(ctx: TokamakContext): Promise<number> {
|
|
402
|
+
return bindings.call(ctx, "PromptVerticalListContentView#getMaxItemCount()I", []);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/** Android API 35+ */
|
|
406
|
+
static getMaxEachItemCharacterNumber(ctx: TokamakContext): Promise<number> {
|
|
407
|
+
return bindings.call(ctx, "PromptVerticalListContentView#getMaxEachItemCharacterNumber()I", []);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/** Android API 35+ */
|
|
411
|
+
getDescription(): Promise<string | null> {
|
|
412
|
+
return bindings.call(this, "PromptVerticalListContentView#getDescription()Ljava/lang/String;", []);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/** Android API 35+ */
|
|
416
|
+
getListItems(): Promise<(PromptContentItem | null)[]> {
|
|
417
|
+
return bindings.call(this, "PromptVerticalListContentView#getListItems()Ljava/util/List;", []);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/** Android API 35+ */
|
|
421
|
+
describeContents(): Promise<number> {
|
|
422
|
+
return bindings.call(this, "PromptVerticalListContentView#describeContents()I", []);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/** Android API 35+ */
|
|
427
|
+
export class PromptVerticalListContentView$Builder extends NativeObject {
|
|
428
|
+
/** Android API 35+ */
|
|
429
|
+
static new(ctx: TokamakContext): Promise<PromptVerticalListContentView$Builder> {
|
|
430
|
+
return bindings.call(ctx, "PromptVerticalListContentView.Builder#<init>()V", []);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/** Android API 35+ */
|
|
434
|
+
setDescription(description: string): Promise<PromptVerticalListContentView$Builder> {
|
|
435
|
+
return bindings.call(this, "PromptVerticalListContentView.Builder#setDescription(Ljava/lang/String;)Landroid/hardware/biometrics/PromptVerticalListContentView$Builder;", [description]);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/** Android API 35+ */
|
|
439
|
+
addListItem(listItem: PromptContentItem): Promise<PromptVerticalListContentView$Builder>;
|
|
440
|
+
/** Android API 35+ */
|
|
441
|
+
addListItem(listItem: PromptContentItem, index: number): Promise<PromptVerticalListContentView$Builder>;
|
|
442
|
+
addListItem(...args: unknown[]): Promise<unknown> {
|
|
443
|
+
return bindings.call(this, bindings.overload(args, [
|
|
444
|
+
["PromptVerticalListContentView.Builder#addListItem(Landroid/hardware/biometrics/PromptContentItem;)Landroid/hardware/biometrics/PromptVerticalListContentView$Builder;", [[PromptContentItem]]],
|
|
445
|
+
["PromptVerticalListContentView.Builder#addListItem(Landroid/hardware/biometrics/PromptContentItem;I)Landroid/hardware/biometrics/PromptVerticalListContentView$Builder;", [[PromptContentItem], ["number"]]],
|
|
446
|
+
]), args);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/** Android API 35+ */
|
|
450
|
+
build(): Promise<PromptVerticalListContentView> {
|
|
451
|
+
return bindings.call(this, "PromptVerticalListContentView.Builder#build()Landroid/hardware/biometrics/PromptVerticalListContentView;", []);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/** Android API 1+ */
|
|
456
|
+
export class Context extends NativeObject {
|
|
457
|
+
/** Android API 4+ */
|
|
458
|
+
static readonly ACCESSIBILITY_SERVICE = "accessibility";
|
|
459
|
+
|
|
460
|
+
/** Android API 5+ */
|
|
461
|
+
static readonly ACCOUNT_SERVICE = "account";
|
|
462
|
+
|
|
463
|
+
/** Android API 1+ */
|
|
464
|
+
static readonly ACTIVITY_SERVICE = "activity";
|
|
465
|
+
|
|
466
|
+
/** Android API 1+ */
|
|
467
|
+
static readonly ALARM_SERVICE = "alarm";
|
|
468
|
+
|
|
469
|
+
/** Android API 21+ */
|
|
470
|
+
static readonly APPWIDGET_SERVICE = "appwidget";
|
|
471
|
+
|
|
472
|
+
/** Android API 19+ */
|
|
473
|
+
static readonly APP_OPS_SERVICE = "appops";
|
|
474
|
+
|
|
475
|
+
/** Android API 31+ */
|
|
476
|
+
static readonly APP_SEARCH_SERVICE = "app_search";
|
|
477
|
+
|
|
478
|
+
/** Android API 1+ */
|
|
479
|
+
static readonly AUDIO_SERVICE = "audio";
|
|
480
|
+
|
|
481
|
+
/** Android API 21+ */
|
|
482
|
+
static readonly BATTERY_SERVICE = "batterymanager";
|
|
483
|
+
|
|
484
|
+
/** Android API 14+ */
|
|
485
|
+
static readonly BIND_ABOVE_CLIENT = 8;
|
|
486
|
+
|
|
487
|
+
/** Android API 14+ */
|
|
488
|
+
static readonly BIND_ADJUST_WITH_ACTIVITY = 128;
|
|
489
|
+
|
|
490
|
+
/** Android API 34+ */
|
|
491
|
+
static readonly BIND_ALLOW_ACTIVITY_STARTS = 512;
|
|
492
|
+
|
|
493
|
+
/** Android API 14+ */
|
|
494
|
+
static readonly BIND_ALLOW_OOM_MANAGEMENT = 16;
|
|
495
|
+
|
|
496
|
+
/** Android API 1+ */
|
|
497
|
+
static readonly BIND_AUTO_CREATE = 1;
|
|
498
|
+
|
|
499
|
+
/** Android API 1+ */
|
|
500
|
+
static readonly BIND_DEBUG_UNBIND = 2;
|
|
501
|
+
|
|
502
|
+
/** Android API 24+ */
|
|
503
|
+
static readonly BIND_EXTERNAL_SERVICE = -2147483648;
|
|
504
|
+
|
|
505
|
+
/** Android API 34+ */
|
|
506
|
+
static readonly BIND_EXTERNAL_SERVICE_LONG = 4611686018427387904;
|
|
507
|
+
|
|
508
|
+
/** Android API 14+ */
|
|
509
|
+
static readonly BIND_IMPORTANT = 64;
|
|
510
|
+
|
|
511
|
+
/** Android API 29+ */
|
|
512
|
+
static readonly BIND_INCLUDE_CAPABILITIES = 4096;
|
|
513
|
+
|
|
514
|
+
/** Android API 8+ */
|
|
515
|
+
static readonly BIND_NOT_FOREGROUND = 4;
|
|
516
|
+
|
|
517
|
+
/** Android API 29+ */
|
|
518
|
+
static readonly BIND_NOT_PERCEPTIBLE = 256;
|
|
519
|
+
|
|
520
|
+
/** Android API 35+ */
|
|
521
|
+
static readonly BIND_PACKAGE_ISOLATED_PROCESS = 16384;
|
|
522
|
+
|
|
523
|
+
/** Android API 34+ */
|
|
524
|
+
static readonly BIND_SHARED_ISOLATED_PROCESS = 8192;
|
|
525
|
+
|
|
526
|
+
/** Android API 14+ */
|
|
527
|
+
static readonly BIND_WAIVE_PRIORITY = 32;
|
|
528
|
+
|
|
529
|
+
/** Android API 29+ */
|
|
530
|
+
static readonly BIOMETRIC_SERVICE = "biometric";
|
|
531
|
+
|
|
532
|
+
/** Android API 30+ */
|
|
533
|
+
static readonly BLOB_STORE_SERVICE = "blob_store";
|
|
534
|
+
|
|
535
|
+
/** Android API 18+ */
|
|
536
|
+
static readonly BLUETOOTH_SERVICE = "bluetooth";
|
|
537
|
+
|
|
538
|
+
/** Android API 31+ */
|
|
539
|
+
static readonly BUGREPORT_SERVICE = "bugreport";
|
|
540
|
+
|
|
541
|
+
/** Android API 21+ */
|
|
542
|
+
static readonly CAMERA_SERVICE = "camera";
|
|
543
|
+
|
|
544
|
+
/** Android API 19+ */
|
|
545
|
+
static readonly CAPTIONING_SERVICE = "captioning";
|
|
546
|
+
|
|
547
|
+
/** Android API 23+ */
|
|
548
|
+
static readonly CARRIER_CONFIG_SERVICE = "carrier_config";
|
|
549
|
+
|
|
550
|
+
/** Android API 1+ */
|
|
551
|
+
static readonly CLIPBOARD_SERVICE = "clipboard";
|
|
552
|
+
|
|
553
|
+
/** Android API 26+ */
|
|
554
|
+
static readonly COMPANION_DEVICE_SERVICE = "companiondevice";
|
|
555
|
+
|
|
556
|
+
/** Android API 30+ */
|
|
557
|
+
static readonly CONNECTIVITY_DIAGNOSTICS_SERVICE = "connectivity_diagnostics";
|
|
558
|
+
|
|
559
|
+
/** Android API 1+ */
|
|
560
|
+
static readonly CONNECTIVITY_SERVICE = "connectivity";
|
|
561
|
+
|
|
562
|
+
/** Android API 19+ */
|
|
563
|
+
static readonly CONSUMER_IR_SERVICE = "consumer_ir";
|
|
564
|
+
|
|
565
|
+
/** Android API 35+ */
|
|
566
|
+
static readonly CONTACT_KEYS_SERVICE = "contact_keys";
|
|
567
|
+
|
|
568
|
+
/** Android API 1+ */
|
|
569
|
+
static readonly CONTEXT_IGNORE_SECURITY = 2;
|
|
570
|
+
|
|
571
|
+
/** Android API 1+ */
|
|
572
|
+
static readonly CONTEXT_INCLUDE_CODE = 1;
|
|
573
|
+
|
|
574
|
+
/** Android API 4+ */
|
|
575
|
+
static readonly CONTEXT_RESTRICTED = 4;
|
|
576
|
+
|
|
577
|
+
/** Android API 34+ */
|
|
578
|
+
static readonly CREDENTIAL_SERVICE = "credential";
|
|
579
|
+
|
|
580
|
+
/** Android API 28+ */
|
|
581
|
+
static readonly CROSS_PROFILE_APPS_SERVICE = "crossprofileapps";
|
|
582
|
+
|
|
583
|
+
/** Android API 34+ */
|
|
584
|
+
static readonly DEVICE_ID_DEFAULT = 0;
|
|
585
|
+
|
|
586
|
+
/** Android API 34+ */
|
|
587
|
+
static readonly DEVICE_ID_INVALID = -1;
|
|
588
|
+
|
|
589
|
+
/** Android API 34+ */
|
|
590
|
+
static readonly DEVICE_LOCK_SERVICE = "device_lock";
|
|
591
|
+
|
|
592
|
+
/** Android API 8+ */
|
|
593
|
+
static readonly DEVICE_POLICY_SERVICE = "device_policy";
|
|
594
|
+
|
|
595
|
+
/** Android API 31+ */
|
|
596
|
+
static readonly DISPLAY_HASH_SERVICE = "display_hash";
|
|
597
|
+
|
|
598
|
+
/** Android API 17+ */
|
|
599
|
+
static readonly DISPLAY_SERVICE = "display";
|
|
600
|
+
|
|
601
|
+
/** Android API 31+ */
|
|
602
|
+
static readonly DOMAIN_VERIFICATION_SERVICE = "domain_verification";
|
|
603
|
+
|
|
604
|
+
/** Android API 9+ */
|
|
605
|
+
static readonly DOWNLOAD_SERVICE = "download";
|
|
606
|
+
|
|
607
|
+
/** Android API 8+ */
|
|
608
|
+
static readonly DROPBOX_SERVICE = "dropbox";
|
|
609
|
+
|
|
610
|
+
/** Android API 28+ */
|
|
611
|
+
static readonly EUICC_SERVICE = "euicc";
|
|
612
|
+
|
|
613
|
+
/** Android API 30+ */
|
|
614
|
+
static readonly FILE_INTEGRITY_SERVICE = "file_integrity";
|
|
615
|
+
|
|
616
|
+
/** Android API 23+ */
|
|
617
|
+
static readonly FINGERPRINT_SERVICE = "fingerprint";
|
|
618
|
+
|
|
619
|
+
/** Android API 31+ */
|
|
620
|
+
static readonly GAME_SERVICE = "game";
|
|
621
|
+
|
|
622
|
+
/** Android API 34+ */
|
|
623
|
+
static readonly GRAMMATICAL_INFLECTION_SERVICE = "grammatical_inflection";
|
|
624
|
+
|
|
625
|
+
/** Android API 24+ */
|
|
626
|
+
static readonly HARDWARE_PROPERTIES_SERVICE = "hardware_properties";
|
|
627
|
+
|
|
628
|
+
/** Android API 34+ */
|
|
629
|
+
static readonly HEALTHCONNECT_SERVICE = "healthconnect";
|
|
630
|
+
|
|
631
|
+
/** Android API 3+ */
|
|
632
|
+
static readonly INPUT_METHOD_SERVICE = "input_method";
|
|
633
|
+
|
|
634
|
+
/** Android API 16+ */
|
|
635
|
+
static readonly INPUT_SERVICE = "input";
|
|
636
|
+
|
|
637
|
+
/** Android API 28+ */
|
|
638
|
+
static readonly IPSEC_SERVICE = "ipsec";
|
|
639
|
+
|
|
640
|
+
/** Android API 21+ */
|
|
641
|
+
static readonly JOB_SCHEDULER_SERVICE = "jobscheduler";
|
|
642
|
+
|
|
643
|
+
/** Android API 1+ */
|
|
644
|
+
static readonly KEYGUARD_SERVICE = "keyguard";
|
|
645
|
+
|
|
646
|
+
/** Android API 21+ */
|
|
647
|
+
static readonly LAUNCHER_APPS_SERVICE = "launcherapps";
|
|
648
|
+
|
|
649
|
+
/** Android API 1+ */
|
|
650
|
+
static readonly LAYOUT_INFLATER_SERVICE = "layout_inflater";
|
|
651
|
+
|
|
652
|
+
/** Android API 33+ */
|
|
653
|
+
static readonly LOCALE_SERVICE = "locale";
|
|
654
|
+
|
|
655
|
+
/** Android API 1+ */
|
|
656
|
+
static readonly LOCATION_SERVICE = "location";
|
|
657
|
+
|
|
658
|
+
/** Android API 31+ */
|
|
659
|
+
static readonly MEDIA_COMMUNICATION_SERVICE = "media_communication";
|
|
660
|
+
|
|
661
|
+
/** Android API 31+ */
|
|
662
|
+
static readonly MEDIA_METRICS_SERVICE = "media_metrics";
|
|
663
|
+
|
|
664
|
+
/** Android API 21+ */
|
|
665
|
+
static readonly MEDIA_PROJECTION_SERVICE = "media_projection";
|
|
666
|
+
|
|
667
|
+
/** Android API 16+ */
|
|
668
|
+
static readonly MEDIA_ROUTER_SERVICE = "media_router";
|
|
669
|
+
|
|
670
|
+
/** Android API 21+ */
|
|
671
|
+
static readonly MEDIA_SESSION_SERVICE = "media_session";
|
|
672
|
+
|
|
673
|
+
/** Android API 23+ */
|
|
674
|
+
static readonly MIDI_SERVICE = "midi";
|
|
675
|
+
|
|
676
|
+
/** Android API 1+ */
|
|
677
|
+
static readonly MODE_APPEND = 32768;
|
|
678
|
+
|
|
679
|
+
/** Android API 16+ */
|
|
680
|
+
static readonly MODE_ENABLE_WRITE_AHEAD_LOGGING = 8;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Android API 11+
|
|
684
|
+
* @deprecated
|
|
685
|
+
*/
|
|
686
|
+
static readonly MODE_MULTI_PROCESS = 4;
|
|
687
|
+
|
|
688
|
+
/** Android API 24+ */
|
|
689
|
+
static readonly MODE_NO_LOCALIZED_COLLATORS = 16;
|
|
690
|
+
|
|
691
|
+
/** Android API 1+ */
|
|
692
|
+
static readonly MODE_PRIVATE = 0;
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Android API 1+
|
|
696
|
+
* @deprecated
|
|
697
|
+
*/
|
|
698
|
+
static readonly MODE_WORLD_READABLE = 1;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Android API 1+
|
|
702
|
+
* @deprecated
|
|
703
|
+
*/
|
|
704
|
+
static readonly MODE_WORLD_WRITEABLE = 2;
|
|
705
|
+
|
|
706
|
+
/** Android API 23+ */
|
|
707
|
+
static readonly NETWORK_STATS_SERVICE = "netstats";
|
|
708
|
+
|
|
709
|
+
/** Android API 10+ */
|
|
710
|
+
static readonly NFC_SERVICE = "nfc";
|
|
711
|
+
|
|
712
|
+
/** Android API 1+ */
|
|
713
|
+
static readonly NOTIFICATION_SERVICE = "notification";
|
|
714
|
+
|
|
715
|
+
/** Android API 16+ */
|
|
716
|
+
static readonly NSD_SERVICE = "servicediscovery";
|
|
717
|
+
|
|
718
|
+
/** Android API 34+ */
|
|
719
|
+
static readonly OVERLAY_SERVICE = "overlay";
|
|
720
|
+
|
|
721
|
+
/** Android API 31+ */
|
|
722
|
+
static readonly PEOPLE_SERVICE = "people";
|
|
723
|
+
|
|
724
|
+
/** Android API 31+ */
|
|
725
|
+
static readonly PERFORMANCE_HINT_SERVICE = "performance_hint";
|
|
726
|
+
|
|
727
|
+
/** Android API 35+ */
|
|
728
|
+
static readonly PERSISTENT_DATA_BLOCK_SERVICE = "persistent_data_block";
|
|
729
|
+
|
|
730
|
+
/** Android API 1+ */
|
|
731
|
+
static readonly POWER_SERVICE = "power";
|
|
732
|
+
|
|
733
|
+
/** Android API 19+ */
|
|
734
|
+
static readonly PRINT_SERVICE = "print";
|
|
735
|
+
|
|
736
|
+
/** Android API 35+ */
|
|
737
|
+
static readonly PROFILING_SERVICE = "profiling";
|
|
738
|
+
|
|
739
|
+
/** Android API 33+ */
|
|
740
|
+
static readonly RECEIVER_EXPORTED = 2;
|
|
741
|
+
|
|
742
|
+
/** Android API 33+ */
|
|
743
|
+
static readonly RECEIVER_NOT_EXPORTED = 4;
|
|
744
|
+
|
|
745
|
+
/** Android API 26+ */
|
|
746
|
+
static readonly RECEIVER_VISIBLE_TO_INSTANT_APPS = 1;
|
|
747
|
+
|
|
748
|
+
/** Android API 21+ */
|
|
749
|
+
static readonly RESTRICTIONS_SERVICE = "restrictions";
|
|
750
|
+
|
|
751
|
+
/** Android API 29+ */
|
|
752
|
+
static readonly ROLE_SERVICE = "role";
|
|
753
|
+
|
|
754
|
+
/** Android API 1+ */
|
|
755
|
+
static readonly SEARCH_SERVICE = "search";
|
|
756
|
+
|
|
757
|
+
/** Android API 35+ */
|
|
758
|
+
static readonly SECURITY_STATE_SERVICE = "security_state";
|
|
759
|
+
|
|
760
|
+
/** Android API 1+ */
|
|
761
|
+
static readonly SENSOR_SERVICE = "sensor";
|
|
762
|
+
|
|
763
|
+
/** Android API 25+ */
|
|
764
|
+
static readonly SHORTCUT_SERVICE = "shortcut";
|
|
765
|
+
|
|
766
|
+
/** Android API 33+ */
|
|
767
|
+
static readonly STATUS_BAR_SERVICE = "statusbar";
|
|
768
|
+
|
|
769
|
+
/** Android API 9+ */
|
|
770
|
+
static readonly STORAGE_SERVICE = "storage";
|
|
771
|
+
|
|
772
|
+
/** Android API 26+ */
|
|
773
|
+
static readonly STORAGE_STATS_SERVICE = "storagestats";
|
|
774
|
+
|
|
775
|
+
/** Android API 24+ */
|
|
776
|
+
static readonly SYSTEM_HEALTH_SERVICE = "systemhealth";
|
|
777
|
+
|
|
778
|
+
/** Android API 21+ */
|
|
779
|
+
static readonly TELECOM_SERVICE = "telecom";
|
|
780
|
+
|
|
781
|
+
/** Android API 30+ */
|
|
782
|
+
static readonly TELEPHONY_IMS_SERVICE = "telephony_ims";
|
|
783
|
+
|
|
784
|
+
/** Android API 1+ */
|
|
785
|
+
static readonly TELEPHONY_SERVICE = "phone";
|
|
786
|
+
|
|
787
|
+
/** Android API 22+ */
|
|
788
|
+
static readonly TELEPHONY_SUBSCRIPTION_SERVICE = "telephony_subscription_service";
|
|
789
|
+
|
|
790
|
+
/** Android API 26+ */
|
|
791
|
+
static readonly TEXT_CLASSIFICATION_SERVICE = "textclassification";
|
|
792
|
+
|
|
793
|
+
/** Android API 14+ */
|
|
794
|
+
static readonly TEXT_SERVICES_MANAGER_SERVICE = "textservices";
|
|
795
|
+
|
|
796
|
+
/** Android API 21+ */
|
|
797
|
+
static readonly TV_INPUT_SERVICE = "tv_input";
|
|
798
|
+
|
|
799
|
+
/** Android API 33+ */
|
|
800
|
+
static readonly TV_INTERACTIVE_APP_SERVICE = "tv_interactive_app";
|
|
801
|
+
|
|
802
|
+
/** Android API 8+ */
|
|
803
|
+
static readonly UI_MODE_SERVICE = "uimode";
|
|
804
|
+
|
|
805
|
+
/** Android API 22+ */
|
|
806
|
+
static readonly USAGE_STATS_SERVICE = "usagestats";
|
|
807
|
+
|
|
808
|
+
/** Android API 12+ */
|
|
809
|
+
static readonly USB_SERVICE = "usb";
|
|
810
|
+
|
|
811
|
+
/** Android API 17+ */
|
|
812
|
+
static readonly USER_SERVICE = "user";
|
|
813
|
+
|
|
814
|
+
/** Android API 31+ */
|
|
815
|
+
static readonly VIBRATOR_MANAGER_SERVICE = "vibrator_manager";
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Android API 1+
|
|
819
|
+
* @deprecated
|
|
820
|
+
*/
|
|
821
|
+
static readonly VIBRATOR_SERVICE = "vibrator";
|
|
822
|
+
|
|
823
|
+
/** Android API 34+ */
|
|
824
|
+
static readonly VIRTUAL_DEVICE_SERVICE = "virtualdevice";
|
|
825
|
+
|
|
826
|
+
/** Android API 30+ */
|
|
827
|
+
static readonly VPN_MANAGEMENT_SERVICE = "vpn_management";
|
|
828
|
+
|
|
829
|
+
/** Android API 1+ */
|
|
830
|
+
static readonly WALLPAPER_SERVICE = "wallpaper";
|
|
831
|
+
|
|
832
|
+
/** Android API 26+ */
|
|
833
|
+
static readonly WIFI_AWARE_SERVICE = "wifiaware";
|
|
834
|
+
|
|
835
|
+
/** Android API 14+ */
|
|
836
|
+
static readonly WIFI_P2P_SERVICE = "wifip2p";
|
|
837
|
+
|
|
838
|
+
/** Android API 28+ */
|
|
839
|
+
static readonly WIFI_RTT_RANGING_SERVICE = "wifirtt";
|
|
840
|
+
|
|
841
|
+
/** Android API 1+ */
|
|
842
|
+
static readonly WIFI_SERVICE = "wifi";
|
|
843
|
+
|
|
844
|
+
/** Android API 1+ */
|
|
845
|
+
static readonly WINDOW_SERVICE = "window";
|
|
846
|
+
|
|
847
|
+
/** Android API 1+ */
|
|
848
|
+
getApplicationContext(): Promise<Context | null> {
|
|
849
|
+
return bindings.call(this, "Context#getApplicationContext()Landroid/content/Context;", []);
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
/** Android API 1+ */
|
|
853
|
+
getText(resId: number): Promise<string> {
|
|
854
|
+
return bindings.call(this, "Context#getText(I)Ljava/lang/CharSequence;", [resId]);
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/** Android API 1+ */
|
|
858
|
+
getString(resId: number): Promise<string>;
|
|
859
|
+
/** Android API 1+ */
|
|
860
|
+
getString(resId: number, formatArgs: (unknown | null)[]): Promise<string>;
|
|
861
|
+
getString(...args: unknown[]): Promise<unknown> {
|
|
862
|
+
return bindings.call(this, bindings.overload(args, [
|
|
863
|
+
["Context#getString(I)Ljava/lang/String;", [["number"]]],
|
|
864
|
+
["Context#getString(I[Ljava/lang/Object;)Ljava/lang/String;", [["number"], ["array"]]],
|
|
865
|
+
]), args);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/** Android API 1+ */
|
|
869
|
+
setTheme(resid: number): Promise<void> {
|
|
870
|
+
return bindings.call(this, "Context#setTheme(I)V", [resid]);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/** Android API 1+ */
|
|
874
|
+
getPackageName(): Promise<string | null> {
|
|
875
|
+
return bindings.call(this, "Context#getPackageName()Ljava/lang/String;", []);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
/** Android API 1+ */
|
|
879
|
+
deleteFile(name: string | null): Promise<boolean> {
|
|
880
|
+
return bindings.call(this, "Context#deleteFile(Ljava/lang/String;)Z", [name]);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/** Android API 1+ */
|
|
884
|
+
fileList(): Promise<(string | null)[] | null> {
|
|
885
|
+
return bindings.call(this, "Context#fileList()[Ljava/lang/String;", []);
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
/** Android API 1+ */
|
|
889
|
+
deleteDatabase(name: string | null): Promise<boolean> {
|
|
890
|
+
return bindings.call(this, "Context#deleteDatabase(Ljava/lang/String;)Z", [name]);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/** Android API 1+ */
|
|
894
|
+
databaseList(): Promise<(string | null)[] | null> {
|
|
895
|
+
return bindings.call(this, "Context#databaseList()[Ljava/lang/String;", []);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* Android API 1+
|
|
900
|
+
* @deprecated
|
|
901
|
+
*/
|
|
902
|
+
getWallpaperDesiredMinimumWidth(): Promise<number> {
|
|
903
|
+
return bindings.call(this, "Context#getWallpaperDesiredMinimumWidth()I", []);
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Android API 1+
|
|
908
|
+
* @deprecated
|
|
909
|
+
*/
|
|
910
|
+
getWallpaperDesiredMinimumHeight(): Promise<number> {
|
|
911
|
+
return bindings.call(this, "Context#getWallpaperDesiredMinimumHeight()I", []);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Android API 1+
|
|
916
|
+
* @deprecated
|
|
917
|
+
*/
|
|
918
|
+
clearWallpaper(): Promise<void> {
|
|
919
|
+
return bindings.call(this, "Context#clearWallpaper()V", []);
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
/** Android API 1+ */
|
|
923
|
+
getSystemService(name: string): Promise<unknown | null> {
|
|
924
|
+
return bindings.call(this, "Context#getSystemService(Ljava/lang/String;)Ljava/lang/Object;", [name]);
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
/** Android API 1+ */
|
|
928
|
+
checkPermission(permission: string, pid: number, uid: number): Promise<number> {
|
|
929
|
+
return bindings.call(this, "Context#checkPermission(Ljava/lang/String;II)I", [permission, pid, uid]);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/** Android API 1+ */
|
|
933
|
+
checkCallingPermission(permission: string): Promise<number> {
|
|
934
|
+
return bindings.call(this, "Context#checkCallingPermission(Ljava/lang/String;)I", [permission]);
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
/** Android API 1+ */
|
|
938
|
+
checkCallingOrSelfPermission(permission: string): Promise<number> {
|
|
939
|
+
return bindings.call(this, "Context#checkCallingOrSelfPermission(Ljava/lang/String;)I", [permission]);
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
/** Android API 1+ */
|
|
943
|
+
enforcePermission(permission: string, pid: number, uid: number, message: string | null): Promise<void> {
|
|
944
|
+
return bindings.call(this, "Context#enforcePermission(Ljava/lang/String;IILjava/lang/String;)V", [permission, pid, uid, message]);
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/** Android API 1+ */
|
|
948
|
+
enforceCallingPermission(permission: string, message: string | null): Promise<void> {
|
|
949
|
+
return bindings.call(this, "Context#enforceCallingPermission(Ljava/lang/String;Ljava/lang/String;)V", [permission, message]);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/** Android API 1+ */
|
|
953
|
+
enforceCallingOrSelfPermission(permission: string, message: string | null): Promise<void> {
|
|
954
|
+
return bindings.call(this, "Context#enforceCallingOrSelfPermission(Ljava/lang/String;Ljava/lang/String;)V", [permission, message]);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/** Android API 1+ */
|
|
958
|
+
createPackageContext(packageName: string | null, flags: number): Promise<Context | null> {
|
|
959
|
+
return bindings.call(this, "Context#createPackageContext(Ljava/lang/String;I)Landroid/content/Context;", [packageName, flags]);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
/** Android API 4+ */
|
|
963
|
+
isRestricted(): Promise<boolean> {
|
|
964
|
+
return bindings.call(this, "Context#isRestricted()Z", []);
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
/** Android API 8+ */
|
|
968
|
+
getPackageResourcePath(): Promise<string | null> {
|
|
969
|
+
return bindings.call(this, "Context#getPackageResourcePath()Ljava/lang/String;", []);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
/** Android API 8+ */
|
|
973
|
+
getPackageCodePath(): Promise<string | null> {
|
|
974
|
+
return bindings.call(this, "Context#getPackageCodePath()Ljava/lang/String;", []);
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/** Android API 23+ */
|
|
978
|
+
getColor(id: number): Promise<number> {
|
|
979
|
+
return bindings.call(this, "Context#getColor(I)I", [id]);
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
/** Android API 23+ */
|
|
983
|
+
checkSelfPermission(permission: string): Promise<number> {
|
|
984
|
+
return bindings.call(this, "Context#checkSelfPermission(Ljava/lang/String;)I", [permission]);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
/** Android API 24+ */
|
|
988
|
+
moveSharedPreferencesFrom(sourceContext: Context | null, name: string | null): Promise<boolean> {
|
|
989
|
+
return bindings.call(this, "Context#moveSharedPreferencesFrom(Landroid/content/Context;Ljava/lang/String;)Z", [sourceContext, name]);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
/** Android API 24+ */
|
|
993
|
+
deleteSharedPreferences(name: string | null): Promise<boolean> {
|
|
994
|
+
return bindings.call(this, "Context#deleteSharedPreferences(Ljava/lang/String;)Z", [name]);
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
/** Android API 24+ */
|
|
998
|
+
moveDatabaseFrom(sourceContext: Context | null, name: string | null): Promise<boolean> {
|
|
999
|
+
return bindings.call(this, "Context#moveDatabaseFrom(Landroid/content/Context;Ljava/lang/String;)Z", [sourceContext, name]);
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
/** Android API 24+ */
|
|
1003
|
+
createDeviceProtectedStorageContext(): Promise<Context | null> {
|
|
1004
|
+
return bindings.call(this, "Context#createDeviceProtectedStorageContext()Landroid/content/Context;", []);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
/** Android API 24+ */
|
|
1008
|
+
isDeviceProtectedStorage(): Promise<boolean> {
|
|
1009
|
+
return bindings.call(this, "Context#isDeviceProtectedStorage()Z", []);
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
/** Android API 26+ */
|
|
1013
|
+
createContextForSplit(splitName: string | null): Promise<Context | null> {
|
|
1014
|
+
return bindings.call(this, "Context#createContextForSplit(Ljava/lang/String;)Landroid/content/Context;", [splitName]);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/** Android API 28+ */
|
|
1018
|
+
getMainExecutor(): Promise<Executor | null> {
|
|
1019
|
+
return bindings.call(this, "Context#getMainExecutor()Ljava/util/concurrent/Executor;", []);
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/** Android API 29+ */
|
|
1023
|
+
getOpPackageName(): Promise<string> {
|
|
1024
|
+
return bindings.call(this, "Context#getOpPackageName()Ljava/lang/String;", []);
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/** Android API 30+ */
|
|
1028
|
+
getAttributionTag(): Promise<string | null> {
|
|
1029
|
+
return bindings.call(this, "Context#getAttributionTag()Ljava/lang/String;", []);
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/** Android API 30+ */
|
|
1033
|
+
createAttributionContext(attributionTag: string | null): Promise<Context> {
|
|
1034
|
+
return bindings.call(this, "Context#createAttributionContext(Ljava/lang/String;)Landroid/content/Context;", [attributionTag]);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
/** Android API 31+ */
|
|
1038
|
+
isUiContext(): Promise<boolean> {
|
|
1039
|
+
return bindings.call(this, "Context#isUiContext()Z", []);
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/** Android API 33+ */
|
|
1043
|
+
revokeSelfPermissionOnKill(permName: string): Promise<void> {
|
|
1044
|
+
return bindings.call(this, "Context#revokeSelfPermissionOnKill(Ljava/lang/String;)V", [permName]);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
/** Android API 33+ */
|
|
1048
|
+
revokeSelfPermissionsOnKill(permissions: (string | null)[]): Promise<void> {
|
|
1049
|
+
return bindings.call(this, "Context#revokeSelfPermissionsOnKill(Ljava/util/Collection;)V", [permissions]);
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/** Android API 34+ */
|
|
1053
|
+
createDeviceContext(deviceId: number): Promise<Context> {
|
|
1054
|
+
return bindings.call(this, "Context#createDeviceContext(I)Landroid/content/Context;", [deviceId]);
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
/** Android API 34+ */
|
|
1058
|
+
getDeviceId(): Promise<number> {
|
|
1059
|
+
return bindings.call(this, "Context#getDeviceId()I", []);
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
/** Android API 34+ */
|
|
1064
|
+
export class Context$BindServiceFlags extends NativeObject {
|
|
1065
|
+
/** Android API 34+ */
|
|
1066
|
+
static of(ctx: TokamakContext, value: number): Promise<Context$BindServiceFlags> {
|
|
1067
|
+
return bindings.call(ctx, "Context.BindServiceFlags#of(J)Landroid/content/Context$BindServiceFlags;", [value]);
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
/** Android API 16+ */
|
|
1072
|
+
export class CancellationSignal extends NativeObject {
|
|
1073
|
+
/** Android API 16+ */
|
|
1074
|
+
static new(ctx: TokamakContext): Promise<CancellationSignal> {
|
|
1075
|
+
return bindings.call(ctx, "CancellationSignal#<init>()V", []);
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
/** Android API 16+ */
|
|
1079
|
+
isCanceled(): Promise<boolean> {
|
|
1080
|
+
return bindings.call(this, "CancellationSignal#isCanceled()Z", []);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/** Android API 16+ */
|
|
1084
|
+
throwIfCanceled(): Promise<void> {
|
|
1085
|
+
return bindings.call(this, "CancellationSignal#throwIfCanceled()V", []);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/** Android API 16+ */
|
|
1089
|
+
cancel(): Promise<void> {
|
|
1090
|
+
return bindings.call(this, "CancellationSignal#cancel()V", []);
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/** Android API 16+ */
|
|
1094
|
+
setOnCancelListener(listener: CancellationSignal$OnCancelListener | null): Promise<void> {
|
|
1095
|
+
return bindings.call(this, "CancellationSignal#setOnCancelListener(Landroid/os/CancellationSignal$OnCancelListener;)V", [listener]);
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
/** Android API 16+ */
|
|
1100
|
+
export interface CancellationSignal$OnCancelListenerMethods {
|
|
1101
|
+
/** Android API 16+ */
|
|
1102
|
+
onCancel?(): void | Promise<void>;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
/** Android API 16+ */
|
|
1106
|
+
export class CancellationSignal$OnCancelListener extends NativeObject {
|
|
1107
|
+
/** A native object whose methods call `handlers`. */
|
|
1108
|
+
static implement(ctx: TokamakContext, handlers: CancellationSignal$OnCancelListenerMethods): Promise<CancellationSignal$OnCancelListener> {
|
|
1109
|
+
return bindings.implement(ctx, CancellationSignal$OnCancelListener, "CancellationSignal.OnCancelListener", ["onCancel"], handlers);
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
/** Android API 16+ */
|
|
1113
|
+
onCancel(): Promise<void> {
|
|
1114
|
+
return bindings.call(this, "CancellationSignal.OnCancelListener#onCancel()V", []);
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
/** Android API 1+ */
|
|
1119
|
+
export class Executor extends NativeObject {
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
const classes: Classes = {
|
|
1123
|
+
"android.hardware.biometrics.BiometricManager": BiometricManager,
|
|
1124
|
+
"android.hardware.biometrics.BiometricManager$Authenticators": BiometricManager$Authenticators,
|
|
1125
|
+
"android.hardware.biometrics.BiometricManager$Strings": BiometricManager$Strings,
|
|
1126
|
+
"android.hardware.biometrics.BiometricPrompt": BiometricPrompt,
|
|
1127
|
+
"android.hardware.biometrics.BiometricPrompt$AuthenticationCallback": BiometricPrompt$AuthenticationCallback,
|
|
1128
|
+
"android.hardware.biometrics.BiometricPrompt$AuthenticationResult": BiometricPrompt$AuthenticationResult,
|
|
1129
|
+
"android.hardware.biometrics.BiometricPrompt$Builder": BiometricPrompt$Builder,
|
|
1130
|
+
"android.hardware.biometrics.BiometricPrompt$CryptoObject": BiometricPrompt$CryptoObject,
|
|
1131
|
+
"android.hardware.biometrics.PromptContentItem": PromptContentItem,
|
|
1132
|
+
"android.hardware.biometrics.PromptContentItemBulletedText": PromptContentItemBulletedText,
|
|
1133
|
+
"android.hardware.biometrics.PromptContentItemPlainText": PromptContentItemPlainText,
|
|
1134
|
+
"android.hardware.biometrics.PromptContentView": PromptContentView,
|
|
1135
|
+
"android.hardware.biometrics.PromptContentViewWithMoreOptionsButton": PromptContentViewWithMoreOptionsButton,
|
|
1136
|
+
"android.hardware.biometrics.PromptContentViewWithMoreOptionsButton$Builder": PromptContentViewWithMoreOptionsButton$Builder,
|
|
1137
|
+
"android.hardware.biometrics.PromptVerticalListContentView": PromptVerticalListContentView,
|
|
1138
|
+
"android.hardware.biometrics.PromptVerticalListContentView$Builder": PromptVerticalListContentView$Builder,
|
|
1139
|
+
"android.content.Context": Context,
|
|
1140
|
+
"android.content.Context$BindServiceFlags": Context$BindServiceFlags,
|
|
1141
|
+
"android.os.CancellationSignal": CancellationSignal,
|
|
1142
|
+
"android.os.CancellationSignal$OnCancelListener": CancellationSignal$OnCancelListener,
|
|
1143
|
+
"java.util.concurrent.Executor": Executor,
|
|
1144
|
+
};
|