@sourcepoint/react-native-cmp
Version:
The official react native bridge to the native Sourcepoint SDKs
50 lines (49 loc) • 1.73 kB
JavaScript
;
import ReactNativeCmp, { SPMessageLanguage } from "./NativeReactNativeCmp.js";
export * from "./NativeReactNativeCmp.js";
const defaultBuildOptions = {
language: SPMessageLanguage.ENGLISH,
messageTimeoutInSeconds: 30
};
export default class SPConsentManager {
build(accountId, propertyId, propertyName, campaigns, options = defaultBuildOptions) {
ReactNativeCmp.build(accountId, propertyId, propertyName, campaigns, options);
}
getUserData() {
return ReactNativeCmp.getUserData();
}
loadMessage(params) {
ReactNativeCmp.loadMessage(params);
}
clearLocalData() {
ReactNativeCmp.clearLocalData();
}
loadGDPRPrivacyManager(pmId) {
ReactNativeCmp.loadGDPRPrivacyManager(pmId);
}
loadUSNatPrivacyManager(pmId) {
ReactNativeCmp.loadUSNatPrivacyManager(pmId);
}
loadGlobalCmpPrivacyManager(pmId) {
ReactNativeCmp.loadGlobalCmpPrivacyManager(pmId);
}
loadPreferenceCenter(id) {
ReactNativeCmp.loadPreferenceCenter(id);
}
dismissMessage() {
ReactNativeCmp.dismissMessage();
}
postCustomConsentGDPR(vendors, categories, legIntCategories, callback) {
ReactNativeCmp.postCustomConsentGDPR(vendors, categories, legIntCategories, callback);
}
postDeleteCustomConsentGDPR(vendors, categories, legIntCategories, callback) {
ReactNativeCmp.postDeleteCustomConsentGDPR(vendors, categories, legIntCategories, callback);
}
onAction = ReactNativeCmp.onAction;
onSPUIReady = ReactNativeCmp.onSPUIReady;
onSPUIFinished = ReactNativeCmp.onSPUIFinished;
onFinished = ReactNativeCmp.onFinished;
onMessageInactivityTimeout = ReactNativeCmp.onMessageInactivityTimeout;
onError = ReactNativeCmp.onError;
}
//# sourceMappingURL=index.js.map