mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
31 lines
999 B
TypeScript
31 lines
999 B
TypeScript
import { platformCheck } from './platform-check';
|
|
|
|
// importing this helper as a separate file avoids "android" symbol clash with the global android object
|
|
import { resources, collections, getWindow, getApplication, getCurrentActivity, getApplicationContext, getResources, getPackageName, getInputMethodManager, showSoftInput, dismissSoftInput } from './native-helper-for-android';
|
|
export { dataSerialize, dataDeserialize } from './native-helper-for-android';
|
|
|
|
export { getWindow } from './native-helper-for-android';
|
|
|
|
export const android = {
|
|
resources,
|
|
collections,
|
|
getApplication,
|
|
getCurrentActivity,
|
|
getApplicationContext,
|
|
getWindow,
|
|
getResources,
|
|
getPackageName,
|
|
getInputMethodManager,
|
|
showSoftInput,
|
|
dismissSoftInput,
|
|
};
|
|
|
|
/**
|
|
* @deprecated Use `Utils.android` instead.
|
|
*/
|
|
export const ad = android;
|
|
|
|
// these don't exist on Android.Stub them to empty functions.
|
|
export const iOSNativeHelper = platformCheck('Utils.iOSNativeHelper');
|
|
export const ios = platformCheck('Utils.ios');
|