import { GenericUtilsModule } from "../interfaces/GenericUtilsModule"; import { NativeModule } from "../managers/NativeModuleHelper"; import { NativeModuleCallbackManager } from "../managers/NativeModuleCallbackManager"; import { NativeModuleResponse } from "../interfaces/NativeModuleResponse"; import { DeviceInfo } from "../interfaces/DeviceInfo"; export default class GenericUtilsModuleImpl extends NativeModule implements GenericUtilsModule { constructor(nativeModuleCallbackManager: NativeModuleCallbackManager); /** * This is used to change the status bar of the app to a certain color. * @param color */ setStatusBarColor(color: string): Promise>; /** * This is used to disable showing a flyout that overlays when swiped from left. * Since flyouts are only present in Android apps, this comes into effect only in Android apps. */ disableFlyout(): Promise>; /** * Just like disableFlyout, this is used to enable flyout overlay to come when swiped from left. */ enableFlyout(): Promise>; /** * Used to show messages in the form of toast. Applicable for both Andorid and iOS * @param message * @param duration */ showToast(message: string, duration?: string): Promise>; /** * Used to fetch the platform info. It can either be android or ios or web. */ getPlatformInfo(): Promise>; getDeviceInfo(): Promise; }