UNPKG

1.26 kBTypeScriptView Raw
1export declare function getApplicationContext(): globalAndroid.content.Context;
2export declare function getCurrentActivity(): androidx.appcompat.app.AppCompatActivity;
3export declare function getApplication(): globalAndroid.app.Application;
4export declare function getResources(): globalAndroid.content.res.Resources;
5export declare function getPackageName(): string;
6export declare function getInputMethodManager(): android.view.inputmethod.InputMethodManager;
7export declare function showSoftInput(nativeView: android.view.View): void;
8export declare function dismissSoftInput(nativeView?: android.view.View): void;
9export declare namespace collections {
10 function stringArrayToStringSet(str: string[]): java.util.HashSet<string>;
11 function stringSetToStringArray(stringSet: any): string[];
12}
13export declare namespace resources {
14 function getDrawableId(name: any): number;
15 function getStringId(name: any): number;
16 function getId(name: string): number;
17 function getResource(name: string, type?: string): number;
18 function getPalleteColor(name: string, context: android.content.Context): number;
19 function getPaletteColor(name: string, context: android.content.Context): number;
20}
21export declare function isRealDevice(): boolean;