-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathandroid.d.ts
More file actions
169 lines (164 loc) · 8.83 KB
/
android.d.ts
File metadata and controls
169 lines (164 loc) · 8.83 KB
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
declare module io {
export module nstudio {
export module plugins {
export module auth0 {
export class Auth0 {
public static class: java.lang.Class<io.nstudio.plugins.auth0.Auth0>;
public static createCredentials(accessToken: string, tokenType: string, idToken: string, refreshToken: string, expiresIn: number, scope: string, recoveryCode: string): com.auth0.android.result.Credentials;
public getAuth0(): com.auth0.android.Auth0;
public static authentication(context: globalAndroid.content.Context): io.nstudio.plugins.auth0.Authentication;
public static getInstance(context: globalAndroid.content.Context): io.nstudio.plugins.auth0.Auth0;
public static authentication(clientId: string, domain: string): io.nstudio.plugins.auth0.Authentication;
public constructor(auth0: com.auth0.android.Auth0);
public webAuth(): io.nstudio.plugins.auth0.WebAuth;
public static webAuth(clientId: string, domain: string): io.nstudio.plugins.auth0.WebAuth;
public static decodeJWT(token: string): io.nstudio.plugins.auth0.DecodedJWT;
public static credentialsManager(context: globalAndroid.content.Context, authentication: io.nstudio.plugins.auth0.Authentication): io.nstudio.plugins.auth0.CredentialsManager;
public authentication(): io.nstudio.plugins.auth0.Authentication;
public static webAuth(context: globalAndroid.content.Context): io.nstudio.plugins.auth0.WebAuth;
}
export module Auth0 {
export class Companion {
public static class: java.lang.Class<io.nstudio.plugins.auth0.Auth0.Companion>;
public getInstance(context: globalAndroid.content.Context): io.nstudio.plugins.auth0.Auth0;
public authentication(clientId: string, domain: string): io.nstudio.plugins.auth0.Authentication;
public createCredentials(field: string, this_: string, accessToken: string, tokenType: string, idToken: number, refreshToken: string, expiresIn: string): com.auth0.android.result.Credentials;
public webAuth(context: globalAndroid.content.Context): io.nstudio.plugins.auth0.WebAuth;
public webAuth(clientId: string, domain: string): io.nstudio.plugins.auth0.WebAuth;
public authentication(context: globalAndroid.content.Context): io.nstudio.plugins.auth0.Authentication;
public decodeJWT(token: string): io.nstudio.plugins.auth0.DecodedJWT;
public credentialsManager(this_: globalAndroid.content.Context, context: io.nstudio.plugins.auth0.Authentication): io.nstudio.plugins.auth0.CredentialsManager;
}
}
}
}
}
}
declare module io {
export module nstudio {
export module plugins {
export module auth0 {
export class Authentication {
public static class: java.lang.Class<io.nstudio.plugins.auth0.Authentication>;
public signup(email: string, password: string, username: string, connection: string, userMetadata: java.util.Map<string, string>, callback: any): void;
public userInfo(value: string, value: java.util.Map<string, string>, it: any): void;
public revoke(value: string, value: java.util.Map<string, string>, it: any): void;
public constructor(authentication: com.auth0.android.authentication.AuthenticationAPIClient);
public refreshToken(value: string, scope?: string, audience?: string, value: java.util.Map<string, string>, it: any): void;
public getAuthentication(): com.auth0.android.authentication.AuthenticationAPIClient;
}
}
}
}
}
declare module io {
export module nstudio {
export module plugins {
export module auth0 {
export class CredentialsManager {
public static class: java.lang.Class<io.nstudio.plugins.auth0.CredentialsManager>;
public getCredentialsManager(): com.auth0.android.authentication.storage.CredentialsManager;
public hasValid(minTtL: number): boolean;
public clear(): boolean;
public user(callback: any): void;
public store(this_: com.auth0.android.result.Credentials): boolean;
public canRenew(): boolean;
public constructor(credentialsManager: com.auth0.android.authentication.storage.CredentialsManager);
public credentials(scope: string, minTtl: number, parameters: java.util.Map<string, string>, forceRefresh: boolean, callback: any): void;
}
}
}
}
}
declare module io {
export module nstudio {
export module plugins {
export module auth0 {
export class DecodedJWT {
public static class: java.lang.Class<io.nstudio.plugins.auth0.DecodedJWT>;
public getAuthenticationTime(): java.util.Date;
public getNonce(): string;
public getExpiresAt(): java.util.Date;
public getNotBefore(): java.util.Date;
public constructor(it: string);
public getAuthorizedParty(): string;
public getIdentifier(): string;
public getSubject(): string;
public getKeyId(): string;
public getIssuedAt(): java.util.Date;
public getOrganizationId(): string;
public getAudience(): java.util.List<string>;
public getBody(): java.util.Map<string, any>;
public getIssuer(): string;
public getParts(): androidNative.Array<string>;
public getAlgorithm(): string;
public getOrganizationName(): string;
}
export module DecodedJWT {
export class Companion {
public static class: java.lang.Class<io.nstudio.plugins.auth0.DecodedJWT.Companion>;
public decodeBase64(this_: string): string;
public splitToken(thisCollection$iv: string): androidNative.Array<string>;
}
export class CredentialsDeserializer extends com.google.gson.JsonDeserializer<com.auth0.android.result.Credentials> {
public static class: java.lang.Class<io.nstudio.plugins.auth0.DecodedJWT.CredentialsDeserializer>;
public constructor();
public deserialize(idToken: com.google.gson.JsonElement, accessToken: java.lang.reflect.Type, type: com.google.gson.JsonDeserializationContext): com.auth0.android.result.Credentials;
public getCurrentTimeInMillis(): number;
public createCredentials(field: string, this_: string, idToken: string, accessToken: string, type: java.util.Date, refreshToken: string, expiresAt: string): com.auth0.android.result.Credentials;
}
export class GsonProvider {
public static class: java.lang.Class<io.nstudio.plugins.auth0.DecodedJWT.GsonProvider>;
public static INSTANCE: io.nstudio.plugins.auth0.DecodedJWT.GsonProvider;
public getGson$nativescript_auth0_release(): com.google.gson.Gson;
public static formatDate(date: java.util.Date): string;
}
export class JsonRequired {
public static class: java.lang.Class<io.nstudio.plugins.auth0.DecodedJWT.JsonRequired>;
/**
* Constructs a new instance of the io.nstudio.plugins.auth0.DecodedJWT$JsonRequired interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {});
public constructor();
}
export class JsonRequiredTypeAdapterFactory {
public static class: java.lang.Class<io.nstudio.plugins.auth0.DecodedJWT.JsonRequiredTypeAdapterFactory>;
public constructor();
public create(this_: com.google.gson.Gson, gson: com.google.gson.reflect.TypeToken): com.google.gson.TypeAdapter;
}
export class JwksDeserializer extends com.google.gson.JsonDeserializer<java.util.Map<string, any>> {
public static class: java.lang.Class<io.nstudio.plugins.auth0.DecodedJWT.JwksDeserializer>;
public constructor();
public deserialize(modulus: com.google.gson.JsonElement, exponent: java.lang.reflect.Type, pub: com.google.gson.JsonDeserializationContext): java.util.Map<string, java.security.PublicKey>;
}
export module JwksDeserializer {
export class Companion {
public static class: java.lang.Class<io.nstudio.plugins.auth0.DecodedJWT.JwksDeserializer.Companion>;
}
}
export class UserProfileDeserializer extends com.google.gson.JsonDeserializer<com.auth0.android.result.UserProfile> {
public static class: java.lang.Class<io.nstudio.plugins.auth0.DecodedJWT.UserProfileDeserializer>;
public constructor();
public deserialize(id: com.google.gson.JsonElement, name: java.lang.reflect.Type, nickname: com.google.gson.JsonDeserializationContext): com.auth0.android.result.UserProfile;
}
}
}
}
}
}
declare module io {
export module nstudio {
export module plugins {
export module auth0 {
export class WebAuth {
public static class: java.lang.Class<io.nstudio.plugins.auth0.WebAuth>;
public getAuth0(): com.auth0.android.Auth0;
public constructor(auth0: com.auth0.android.Auth0);
public clearSession(context: globalAndroid.content.Context, scheme: string, federated: boolean, returnToUrl: string, callback: any): void;
public start(context: globalAndroid.content.Context, scheme: string, scope: string, audience: string, redirectUrl: string, parameters: java.util.Map<string, string>, callback: any): void;
}
}
}
}
}
//Generics information: