UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

22 lines (21 loc) 1.26 kB
export declare function getApplicationContext(): globalAndroid.content.Context; export declare function getCurrentActivity(): androidx.appcompat.app.AppCompatActivity; export declare function getApplication(): globalAndroid.app.Application; export declare function getResources(): globalAndroid.content.res.Resources; export declare function getPackageName(): string; export declare function getInputMethodManager(): android.view.inputmethod.InputMethodManager; export declare function showSoftInput(nativeView: android.view.View): void; export declare function dismissSoftInput(nativeView?: android.view.View): void; export declare namespace collections { function stringArrayToStringSet(str: string[]): java.util.HashSet<string>; function stringSetToStringArray(stringSet: any): string[]; } export declare namespace resources { function getDrawableId(name: any): number; function getStringId(name: any): number; function getId(name: string): number; function getResource(name: string, type?: string): number; function getPalleteColor(name: string, context: android.content.Context): number; function getPaletteColor(name: string, context: android.content.Context): number; } export declare function isRealDevice(): boolean;