@ua/react-native-airship
Version:
Airship plugin for React Native apps.
32 lines • 1.2 kB
TypeScript
import { PreferenceCenter } from './types';
/**
* Airship Preference Center.
*/
export declare class AirshipPreferenceCenter {
private readonly module;
constructor(module: any);
/**
* Requests to display a preference center.
*
* Will either emit an event to display the
* Preference Center if auto launch is disabled,
* or display the OOTB UI.
* @param preferenceCenterId The preference center Id.
* @returns A promise.
*/
display(preferenceCenterId: string): Promise<void>;
/**
* Gets the preference center config.
* @param preferenceCenterId The preference center Id.
* @returns A promise with the result.
*/
getConfig(preferenceCenterId: string): Promise<PreferenceCenter>;
/**
* Enables or disables showing the OOTB UI when requested to display by either
* `display` or by a notification with some other action.
* @param preferenceCenterId The preference center Id.
* @param autoLaunch true to show OOTB UI, false to emit events.
*/
setAutoLaunchDefaultPreferenceCenter(preferenceCenterId: string, autoLaunch: boolean): void;
}
//# sourceMappingURL=AirshipPreferenceCenter.d.ts.map