From 323f1bb44aa4b0f2603081c042331a4b935138d0 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Wed, 5 Jul 2023 09:11:16 -0700 Subject: [PATCH] feat(airship): iOS SDK 17 --- apps/demo-angular/project.json | 6 +- apps/demo/project.json | 6 +- .../platforms/ios/Podfile | 6 +- .../typings/objc!AirshipKit.d.ts | 6873 +++++------------ tools/assets/App_Resources/iOS/Podfile | 5 +- tools/assets/App_Resources/iOS/build.xcconfig | 1 + 6 files changed, 1754 insertions(+), 5143 deletions(-) diff --git a/apps/demo-angular/project.json b/apps/demo-angular/project.json index 85bfd64..5310329 100644 --- a/apps/demo-angular/project.json +++ b/apps/demo-angular/project.json @@ -24,7 +24,8 @@ "ios": { "executor": "@nativescript/nx:build", "options": { - "platform": "ios" + "platform": "ios", + "noHmr": true }, "dependsOn": [ { @@ -36,7 +37,8 @@ "android": { "executor": "@nativescript/nx:build", "options": { - "platform": "android" + "platform": "android", + "noHmr": true }, "dependsOn": [ { diff --git a/apps/demo/project.json b/apps/demo/project.json index 87572e6..96ad890 100644 --- a/apps/demo/project.json +++ b/apps/demo/project.json @@ -24,7 +24,8 @@ "ios": { "executor": "@nativescript/nx:build", "options": { - "platform": "ios" + "platform": "ios", + "noHmr": true }, "dependsOn": [ { @@ -36,7 +37,8 @@ "android": { "executor": "@nativescript/nx:build", "options": { - "platform": "android" + "platform": "android", + "noHmr": true }, "dependsOn": [ { diff --git a/packages/nativescript-urban-airship/platforms/ios/Podfile b/packages/nativescript-urban-airship/platforms/ios/Podfile index ae4203f..03be2b9 100644 --- a/packages/nativescript-urban-airship/platforms/ios/Podfile +++ b/packages/nativescript-urban-airship/platforms/ios/Podfile @@ -1,4 +1,6 @@ platform :ios, '13.0' -pod 'Airship' , '~> 16.11.3' -pod 'Airship/PreferenceCenter' +pod 'Airship/Core', '~> 17.0.2' +pod 'Airship/MessageCenter', '~> 17.0.2' +pod 'Airship/Automation', '~> 17.0.2' +pod 'Airship/PreferenceCenter', '~> 17.0.2' diff --git a/packages/nativescript-urban-airship/typings/objc!AirshipKit.d.ts b/packages/nativescript-urban-airship/typings/objc!AirshipKit.d.ts index b5cd75a..262b604 100644 --- a/packages/nativescript-urban-airship/typings/objc!AirshipKit.d.ts +++ b/packages/nativescript-urban-airship/typings/objc!AirshipKit.d.ts @@ -2,48 +2,24 @@ declare var AirshipKitVersionNumber: number; declare var AirshipKitVersionString: interop.Reference; -interface AppStateTrackerProtocol { - state: UAApplicationState; -} -declare var AppStateTrackerProtocol: { - prototype: AppStateTrackerProtocol; -}; - -declare class ChannelRegistrar extends NSObject implements UAChannelRegistrarProtocol { - static alloc(): ChannelRegistrar; // inherited from NSObject - - static new(): ChannelRegistrar; // inherited from NSObject - - readonly channelID: string; // inherited from UAChannelRegistrarProtocol - - delegate: UAChannelRegistrarDelegate; // inherited from UAChannelRegistrarProtocol - - constructor(o: { config: UARuntimeConfig; dataStore: UAPreferenceDataStore }); - - initWithConfigDataStore(config: UARuntimeConfig, dataStore: UAPreferenceDataStore): this; +declare const enum AirshipWorkRequestConflictPolicy { + UAirshipWorkRequestConflictPolicyAppend = 0, - performFullRegistration(): void; + UAirshipWorkRequestConflictPolicyReplace = 1, - registerForcefully(forcefully: boolean): void; + UAirshipWorkRequestConflictPolicyKeepIfNotStarted = 2, } -interface LocaleManagerProtocol { - currentLocale: NSLocale; +declare class ExperimentResult extends NSObject { + static alloc(): ExperimentResult; // inherited from NSObject - clearLocale(): void; + static new(): ExperimentResult; // inherited from NSObject } -declare var LocaleManagerProtocol: { - prototype: LocaleManagerProtocol; -}; - -declare class NativeBridgeActionHandler extends NSObject implements UANativeBridgeActionHandlerProtocol { - static alloc(): NativeBridgeActionHandler; // inherited from NSObject - static isActionCommand(command: UAJavaScriptCommand): boolean; +declare class MessageInfo extends NSObject { + static alloc(): MessageInfo; // inherited from NSObject - static new(): NativeBridgeActionHandler; // inherited from NSObject - - runActionsForCommandMetadataCompletionHandler(command: UAJavaScriptCommand, metadata: NSDictionary, completionHandler: (p1: string) => void): void; + static new(): MessageInfo; // inherited from NSObject } declare class SearchEventTemplate extends NSObject { @@ -79,9 +55,9 @@ interface TaskManagerProtocol { enqueueRequestWithIDRateLimitIDsOptionsMinDelay(taskID: string, rateLimitIDs: NSArray | string[], options: UATaskRequestOptions, minDelay: number): void; - registerForTaskWithIDDispatcherLaunchHandler(taskID: string, dispatcher: UADispatcher, launchHandler: (p1: UATask) => void): void; + registerForTaskWithIDTypeDispatcherLaunchHandler(taskID: string, type: UAirshipWorkerType, dispatcher: UADispatcher, launchHandler: (p1: UATask) => void): void; - registerForTaskWithIDsDispatcherLaunchHandler(taskIDs: NSArray | string[], dispatcher: UADispatcher, launchHandler: (p1: UATask) => void): void; + registerForTaskWithIDTypeLaunchHandler(taskID: string, type: UAirshipWorkerType, launchHandler: (p1: UATask) => void): void; setRateLimitForIDRateTimeIntervalError(rateLimitID: string, rate: number, timeInterval: number): boolean; } @@ -125,170 +101,12 @@ declare class UAAccountEventTemplate extends NSObject { createEvent(): UACustomEvent; } -interface UAAction extends NSObjectProtocol { - acceptsArguments(_arguments: UAActionArguments): boolean; - - didPerformWithArgumentsWithResult?(_arguments: UAActionArguments, result: UAActionResult): void; - - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - - willPerformWithArguments?(_arguments: UAActionArguments): void; -} -declare var UAAction: { - prototype: UAAction; -}; - -declare class UAActionArguments extends NSObject { - static alloc(): UAActionArguments; // inherited from NSObject - - static argumentsWithValueWithSituation(value: any, situation: UASituation): UAActionArguments; - - static argumentsWithValueWithSituationMetadata(value: any, situation: UASituation, metadata: NSDictionary): UAActionArguments; - - static new(): UAActionArguments; // inherited from NSObject - - readonly metadata: NSDictionary; - - readonly situation: UASituation; - - readonly value: any; -} - -declare const enum UAActionFetchResult { - NoData = 1, - - NewData = 0, - - Failed = 2, -} - -declare var UAActionMetadataForegroundPresentationKey: string; - -declare var UAActionMetadataInboxMessageIDKey: string; - -declare var UAActionMetadataPushPayloadKey: string; - -declare var UAActionMetadataRegisteredName: string; - -declare var UAActionMetadataResponseInfoKey: string; - -declare var UAActionMetadataUserNotificationActionIDKey: string; - -interface UAActionPredicateProtocol extends NSObjectProtocol { - applyActionArguments(args: UAActionArguments): boolean; -} -declare var UAActionPredicateProtocol: { - prototype: UAActionPredicateProtocol; -}; - -declare class UAActionRegistry extends NSObject { - static alloc(): UAActionRegistry; // inherited from NSObject - - static defaultRegistry(): UAActionRegistry; - - static new(): UAActionRegistry; // inherited from NSObject - - readonly registeredEntries: NSSet; - - addNameForEntryWithName(name: string, entryName: string): boolean; - - addSituationOverrideForEntryWithNameAction(situation: UASituation, name: string, action: UAAction): boolean; - - registerActionClassName(actionClass: typeof NSObject, name: string): boolean; - - registerActionClassNamePredicate(actionClass: typeof NSObject, name: string, predicate: (p1: UAActionArguments) => boolean): boolean; - - registerActionClassNames(actionClass: typeof NSObject, names: NSArray | string[]): boolean; - - registerActionClassNamesPredicate(actionClass: typeof NSObject, names: NSArray | string[], predicate: (p1: UAActionArguments) => boolean): boolean; - - registerActionName(action: UAAction, name: string): boolean; - - registerActionNamePredicate(action: UAAction, name: string, predicate: (p1: UAActionArguments) => boolean): boolean; - - registerActionNames(action: UAAction, names: NSArray | string[]): boolean; - - registerActionNamesPredicate(action: UAAction, names: NSArray | string[], predicate: (p1: UAActionArguments) => boolean): boolean; - - registerActionsFromFile(path: string): void; - - registryEntryWithName(name: string): UAActionRegistryEntry; - - removeEntryWithName(name: string): void; - - removeName(name: string): void; - - updateActionClassForEntryWithName(actionClass: typeof NSObject, name: string): boolean; - - updateActionForEntryWithName(action: UAAction, name: string): boolean; - - updatePredicateForEntryWithName(predicate: (p1: UAActionArguments) => boolean, name: string): boolean; -} - -declare class UAActionRegistryEntry extends NSObject { - static alloc(): UAActionRegistryEntry; // inherited from NSObject - - static new(): UAActionRegistryEntry; // inherited from NSObject - - readonly action: UAAction; - - readonly names: NSArray; - - readonly predicate: (p1: UAActionArguments) => boolean; - - actionForSituation(situation: UASituation): UAAction; -} - -declare class UAActionResult extends NSObject { - static actionNotFoundResult(): UAActionResult; - - static alloc(): UAActionResult; // inherited from NSObject - - static emptyResult(): UAActionResult; - - static new(): UAActionResult; // inherited from NSObject - - static rejectedArgumentsResult(): UAActionResult; - - static resultWithError(error: NSError): UAActionResult; - - static resultWithErrorWithFetchResult(error: NSError, fetchResult: UAActionFetchResult): UAActionResult; - - static resultWithValue(value: any): UAActionResult; - - static resultWithValueWithFetchResult(result: any, fetchResult: UAActionFetchResult): UAActionResult; - - readonly error: NSError; - - readonly fetchResult: UAActionFetchResult; - - readonly status: UAActionStatus; - - readonly value: any; -} - declare class UAActionRunner extends NSObject { static alloc(): UAActionRunner; // inherited from NSObject static new(): UAActionRunner; // inherited from NSObject - static runActionValueSituation(action: UAAction, value: any, situation: UASituation): void; - - static runActionValueSituationCompletionHandler(action: UAAction, value: any, situation: UASituation, completionHandler: (p1: UAActionResult) => void): void; - - static runActionValueSituationMetadata(action: UAAction, value: any, situation: UASituation, metadata: NSDictionary): void; - - static runActionValueSituationMetadataCompletionHandler(action: UAAction, value: any, situation: UASituation, metadata: NSDictionary, completionHandler: (p1: UAActionResult) => void): void; - - static runActionWithNameValueSituation(actionName: string, value: any, situation: UASituation): void; - - static runActionWithNameValueSituationCompletionHandler(actionName: string, value: any, situation: UASituation, completionHandler: (p1: UAActionResult) => void): void; - - static runActionWithNameValueSituationMetadata(actionName: string, value: any, situation: UASituation, metadata: NSDictionary): void; - - static runActionWithNameValueSituationMetadataCompletionHandler(actionName: string, value: any, situation: UASituation, metadata: NSDictionary, completionHandler: (p1: UAActionResult) => void): void; - - static runActionsWithActionValuesSituationMetadataCompletionHandler(actionValues: NSDictionary, situation: UASituation, metadata: NSDictionary, completionHandler: (p1: UAActionResult) => void): void; + static runActionsSituationCompletionHandler(actionsPayload: NSDictionary, situation: UAActionSituation, completionHandler: () => void): void; } declare class UAActionSchedule extends UASchedule { @@ -303,14 +121,22 @@ declare class UAActionSchedule extends UASchedule { readonly dataJSONString: string; } -declare const enum UAActionStatus { - Completed = 0, +declare const enum UAActionSituation { + ManualInvocation = 0, + + LaunchedFromPush = 1, + + ForegroundPush = 2, + + BackgroundPush = 3, + + WebViewInvocation = 4, - ArgumentsRejected = 1, + ForegroundInteractiveButton = 5, - ActionNotFound = 2, + BackgroundInteractiveButton = 6, - Error = 3, + Automation = 7, } declare class UAActivityViewController extends UIActivityViewController implements UIPopoverControllerDelegate, UIPopoverPresentationControllerDelegate { @@ -389,133 +215,16 @@ declare class UAActivityViewController extends UIActivityViewController implemen sourceRect(): CGRect; } -declare class UAAddCustomEventAction extends NSObject implements UAAction { - static alloc(): UAAddCustomEventAction; // inherited from NSObject - - static new(): UAAddCustomEventAction; // inherited from NSObject - - static readonly name: string; - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - acceptsArguments(_arguments: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; -} - -declare class UAAddCustomEventActionPredicate extends NSObject implements UAActionPredicateProtocol { - static alloc(): UAAddCustomEventActionPredicate; // inherited from NSObject - - static new(): UAAddCustomEventActionPredicate; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - applyActionArguments(args: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare class UAAddTagsAction extends UAModifyTagsAction { - static alloc(): UAAddTagsAction; // inherited from NSObject - - static new(): UAAddTagsAction; // inherited from NSObject - - static readonly name: string; - - static readonly shortName: string; -} - -declare class UAAggregateActionResult extends UAActionResult { - static actionNotFoundResult(): UAAggregateActionResult; // inherited from UAActionResult - - static alloc(): UAAggregateActionResult; // inherited from NSObject - - static emptyResult(): UAAggregateActionResult; // inherited from UAActionResult - - static new(): UAAggregateActionResult; // inherited from NSObject - - static rejectedArgumentsResult(): UAAggregateActionResult; // inherited from UAActionResult - - static resultWithError(error: NSError): UAAggregateActionResult; // inherited from UAActionResult - - static resultWithErrorWithFetchResult(error: NSError, fetchResult: UAActionFetchResult): UAAggregateActionResult; // inherited from UAActionResult - - static resultWithValue(value: any): UAAggregateActionResult; // inherited from UAActionResult - - static resultWithValueWithFetchResult(result: any, fetchResult: UAActionFetchResult): UAAggregateActionResult; // inherited from UAActionResult - - addResultForAction(result: UAActionResult, actionName: string): void; +interface UAAirshipPermissionDelegate { + checkPermissionStatusWithCompletionHandler(completionHandler: (p1: UAPermissionStatus) => void): void; - resultForAction(actionName: string): UAActionResult; + requestPermissionWithCompletionHandler(completionHandler: (p1: UAPermissionStatus) => void): void; } +declare var UAAirshipPermissionDelegate: { + prototype: UAAirshipPermissionDelegate; +}; -declare class UAAnalytics extends NSObject implements UAAnalyticsProtocol, UAComponent, UAEventManagerDelegate { +declare class UAAnalytics extends NSObject implements UAAnalyticsProtocol, UAComponent { static alloc(): UAAnalytics; // inherited from NSObject static new(): UAAnalytics; // inherited from NSObject @@ -536,16 +245,12 @@ declare class UAAnalytics extends NSObject implements UAAnalyticsProtocol, UACom static readonly shared: UAAnalytics; - static readonly supplier: () => UAAnalyticsProtocol; - componentEnabled: boolean; // inherited from UAComponent readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol - eventConsumer: UAAnalyticsEventConsumerProtocol; // inherited from UAAnalyticsProtocol - readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol @@ -556,18 +261,10 @@ declare class UAAnalytics extends NSObject implements UAAnalyticsProtocol, UACom readonly; // inherited from NSObjectProtocol - constructor(o: { config: UARuntimeConfig; dataStore: UAPreferenceDataStore; channel: UAChannelProtocol; eventManager: UAEventManagerProtocol; notificationCenter: NSNotificationCenter; date: UADate; dispatcher: UADispatcher; localeManager: LocaleManagerProtocol; appStateTracker: AppStateTrackerProtocol; privacyManager: UAPrivacyManager; permissionsManager: UAPermissionsManager }); - - constructor(o: { config: UARuntimeConfig; dataStore: UAPreferenceDataStore; channel: UAChannelProtocol; localeManager: LocaleManagerProtocol; privacyManager: UAPrivacyManager; permissionsManager: UAPermissionsManager }); - - addAnalyticsHeadersBlock(headerBlock: () => NSDictionary): void; - addEvent(event: UAEvent): void; airshipReady(): void; - analyticsHeadersWithCompletionHandler(completionHandler: (p1: NSDictionary) => void): void; - applyRemoteConfig(config: any): void; associateDeviceIdentifiers(associatedIdentifiers: UAAssociatedIdentifiers): void; @@ -580,18 +277,12 @@ declare class UAAnalytics extends NSObject implements UAAnalyticsProtocol, UACom deepLink(deepLink: NSURL): boolean; - initWithConfigDataStoreChannelEventManagerNotificationCenterDateDispatcherLocaleManagerAppStateTrackerPrivacyManagerPermissionsManager(config: UARuntimeConfig, dataStore: UAPreferenceDataStore, channel: UAChannelProtocol, eventManager: UAEventManagerProtocol, notificationCenter: NSNotificationCenter, date: UADate, dispatcher: UADispatcher, localeManager: LocaleManagerProtocol, appStateTracker: AppStateTrackerProtocol, privacyManager: UAPrivacyManager, permissionsManager: UAPermissionsManager): this; - - initWithConfigDataStoreChannelLocaleManagerPrivacyManagerPermissionsManager(config: UARuntimeConfig, dataStore: UAPreferenceDataStore, channel: UAChannelProtocol, localeManager: LocaleManagerProtocol, privacyManager: UAPrivacyManager, permissionsManager: UAPermissionsManager): this; - isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; - launchedFromNotification(notification: NSDictionary): void; - performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; @@ -604,43 +295,26 @@ declare class UAAnalytics extends NSObject implements UAAnalyticsProtocol, UACom retainCount(): number; - scheduleUpload(): void; - self(): this; trackScreen(screen: string): void; } -interface UAAnalyticsEventConsumerProtocol { - eventAddedWithEventEventIDEventDate(event: UAEvent, eventID: string, eventDate: Date): void; -} -declare var UAAnalyticsEventConsumerProtocol: { - prototype: UAAnalyticsEventConsumerProtocol; -}; - interface UAAnalyticsProtocol { conversionPushMetadata: string; conversionSendID: string; - eventConsumer: UAAnalyticsEventConsumerProtocol; - sessionID: string; - addAnalyticsHeadersBlock(headerBlock: () => NSDictionary): void; - addEvent(event: UAEvent): void; associateDeviceIdentifiers(associatedIdentifiers: UAAssociatedIdentifiers): void; currentAssociatedDeviceIdentifiers(): UAAssociatedIdentifiers; - launchedFromNotification(notification: NSDictionary): void; - registerSDKExtensionVersion(ext: UASDKExtension, version: string): void; - scheduleUpload(): void; - trackScreen(screen: string): void; } declare var UAAnalyticsProtocol: { @@ -694,11 +368,13 @@ declare var UAAppIntegrationDelegate: { prototype: UAAppIntegrationDelegate; }; -declare class UAAppStateTracker extends NSObject implements AppStateTrackerProtocol, UAAppStateTrackerDelegate { +declare class UAAppStateTracker extends NSObject { static alloc(): UAAppStateTracker; // inherited from NSObject static new(): UAAppStateTracker; // inherited from NSObject + readonly state: UAApplicationState; + static readonly didBecomeActiveNotification: string; static readonly didEnterBackgroundNotification: string; @@ -714,47 +390,7 @@ declare class UAAppStateTracker extends NSObject implements AppStateTrackerProto static readonly willResignActiveNotification: string; static readonly willTerminateNotification: string; - - readonly state: UAApplicationState; // inherited from AppStateTrackerProtocol - - constructor(o: { notificationCenter: NSNotificationCenter; adapter: UAAppStateTrackerAdapter }); - - applicationDidBecomeActive(): void; - - applicationDidEnterBackground(): void; - - applicationWillEnterForeground(): void; - - applicationWillResignActive(): void; - - applicationWillTerminate(): void; - - initWithNotificationCenterAdapter(notificationCenter: NSNotificationCenter, adapter: UAAppStateTrackerAdapter): this; -} - -interface UAAppStateTrackerAdapter { - state: UAApplicationState; - - stateTrackerDelegate: UAAppStateTrackerDelegate; -} -declare var UAAppStateTrackerAdapter: { - prototype: UAAppStateTrackerAdapter; -}; - -interface UAAppStateTrackerDelegate { - applicationDidBecomeActive(): void; - - applicationDidEnterBackground(): void; - - applicationWillEnterForeground(): void; - - applicationWillResignActive(): void; - - applicationWillTerminate(): void; } -declare var UAAppStateTrackerDelegate: { - prototype: UAAppStateTrackerDelegate; -}; declare class UAApplicationMetrics extends NSObject { static alloc(): UAApplicationMetrics; // inherited from NSObject @@ -766,14 +402,6 @@ declare class UAApplicationMetrics extends NSObject { readonly isAppVersionUpdated: boolean; readonly lastApplicationOpenDate: Date; - - constructor(o: { dataStore: UAPreferenceDataStore; privacyManager: UAPrivacyManager }); - - constructor(o: { dataStore: UAPreferenceDataStore; privacyManager: UAPrivacyManager; notificationCenter: NSNotificationCenter; date: UADate }); - - initWithDataStorePrivacyManager(dataStore: UAPreferenceDataStore, privacyManager: UAPrivacyManager): this; - - initWithDataStorePrivacyManagerNotificationCenterDate(dataStore: UAPreferenceDataStore, privacyManager: UAPrivacyManager, notificationCenter: NSNotificationCenter, date: UADate): this; } declare const enum UAApplicationState { @@ -848,30 +476,6 @@ declare class UAAttributeMutations extends NSObject { setStringForAttribute(string: string, forAttribute: string): void; } -declare class UAAttributeUpdate extends NSObject { - static alloc(): UAAttributeUpdate; // inherited from NSObject - - static new(): UAAttributeUpdate; // inherited from NSObject - - readonly attribute: string; - - readonly date: Date; - - readonly type: UAAttributeUpdateType; - - constructor(o: { attribute: string; type: UAAttributeUpdateType; value: any; date: Date }); - - initWithAttributeTypeValueDate(attribute: string, type: UAAttributeUpdateType, value: any, date: Date): this; - - value(): any; -} - -declare const enum UAAttributeUpdateType { - Remove = 0, - - Set = 1, -} - declare class UAAttributes extends NSObject { static alloc(): UAAttributes; // inherited from NSObject @@ -918,59 +522,13 @@ declare class UAAttributes extends NSObject { static readonly zipCode: string; } -declare class UAAttributesActionPredicate extends NSObject implements UAActionPredicateProtocol { - static alloc(): UAAttributesActionPredicate; // inherited from NSObject - - static new(): UAAttributesActionPredicate; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - applyActionArguments(args: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare class UAAttributesEditor extends NSObject { - static alloc(): UAAttributesEditor; // inherited from NSObject +declare class UAAttributesEditor extends NSObject { + static alloc(): UAAttributesEditor; // inherited from NSObject static new(): UAAttributesEditor; // inherited from NSObject - constructor(o: { completionHandler: (p1: NSArray) => void }); - apply(): void; - initWithCompletionHandler(completionHandler: (p1: NSArray) => void): this; - removeAttribute(attribute: string): void; setDateAttribute(date: Date, attribute: string): void; @@ -980,22 +538,6 @@ declare class UAAttributesEditor extends NSObject { setStringAttribute(string: string, attribute: string): void; } -declare class UAAudienceUtils extends NSObject { - static alloc(): UAAudienceUtils; // inherited from NSObject - - static applyTagUpdatesUpdates(tagGroups: NSDictionary>, updates: NSArray | UATagGroupUpdate[]): NSDictionary>; - - static collapseAttributeUpdates(updates: NSArray | UAAttributeUpdate[]): NSArray; - - static collapseTagGroupUpdates(updates: NSArray | UATagGroupUpdate[]): NSArray; - - static new(): UAAudienceUtils; // inherited from NSObject - - static normalizeTagGroup(group: string): string; - - static normalizeTags(tags: NSArray | string[]): NSArray; -} - declare const enum UAAuthorizationStatus { NotDetermined = 0, @@ -1042,6 +584,28 @@ declare class UAAutoIntegration extends NSObject { static reset(): void; } +declare class UAAutomationAudienceOverrides extends NSObject { + static alloc(): UAAutomationAudienceOverrides; // inherited from NSObject + + static new(): UAAutomationAudienceOverrides; // inherited from NSObject + + readonly attributesPayload: NSArray>; + + readonly tagsPayload: NSDictionary>>; + + constructor(o: { tagsPayload: NSDictionary>>; attributesPayload: NSArray> | NSDictionary[] }); + + initWithTagsPayloadAttributesPayload(tagsPayload: NSDictionary>>, attributesPayload: NSArray> | NSDictionary[]): this; +} + +declare class UAAutomationAudienceOverridesProvider extends NSObject { + static alloc(): UAAutomationAudienceOverridesProvider; // inherited from NSObject + + static new(): UAAutomationAudienceOverridesProvider; // inherited from NSObject + + audienceOverridesWithChannelIDCompletionHandler(channelID: string, completionHandler: (p1: UAAutomationAudienceOverrides) => void): void; +} + declare class UAAutomationResources extends NSObject { static alloc(): UAAutomationResources; // inherited from NSObject @@ -1050,10 +614,10 @@ declare class UAAutomationResources extends NSObject { static new(): UAAutomationResources; // inherited from NSObject } -declare class UAAutomationSDKModule extends NSObject implements UASDKModule { +declare class UAAutomationSDKModule extends NSObject implements UALegacySDKModule { static alloc(): UAAutomationSDKModule; // inherited from NSObject - static loadWithDependencies(dependencies: NSDictionary): UASDKModule; + static loadWithDependencies(dependencies: NSDictionary): UALegacySDKModule; static new(): UAAutomationSDKModule; // inherited from NSObject @@ -1069,7 +633,7 @@ declare class UAAutomationSDKModule extends NSObject implements UASDKModule { readonly; // inherited from NSObjectProtocol - actionsPlist(): string; + actions(): NSArray; class(): typeof NSObject; @@ -1122,24 +686,6 @@ declare class UABase64 extends NSObject { static stringFromData(data: NSData): string; } -declare class UABespokeCloseView extends UIView { - static alloc(): UABespokeCloseView; // inherited from NSObject - - static appearance(): UABespokeCloseView; // inherited from UIAppearance - - static appearanceForTraitCollection(trait: UITraitCollection): UABespokeCloseView; // inherited from UIAppearance - - static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UABespokeCloseView; // inherited from UIAppearance - - static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | (typeof NSObject)[]): UABespokeCloseView; // inherited from UIAppearance - - static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UABespokeCloseView; // inherited from UIAppearance - - static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | (typeof NSObject)[]): UABespokeCloseView; // inherited from UIAppearance - - static new(): UABespokeCloseView; // inherited from NSObject -} - declare class UABeveledLoadingIndicator extends UIView { static alloc(): UABeveledLoadingIndicator; // inherited from NSObject @@ -1162,62 +708,6 @@ declare class UABeveledLoadingIndicator extends UIView { show(): void; } -declare class UABlockAction extends NSObject implements UAAction { - static alloc(): UABlockAction; // inherited from NSObject - - static new(): UABlockAction; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - constructor(o: { block: (p1: UAActionArguments, p2: (p1: UAActionResult) => void) => void }); - - constructor(o: { predicate: (p1: UAActionArguments) => boolean; block: (p1: UAActionArguments, p2: (p1: UAActionResult) => void) => void }); - - acceptsArguments(_arguments: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; - - initWithBlock(block: (p1: UAActionArguments, p2: (p1: UAActionResult) => void) => void): this; - - initWithPredicateBlock(predicate: (p1: UAActionArguments) => boolean, block: (p1: UAActionArguments, p2: (p1: UAActionResult) => void) => void): this; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; -} - declare const enum UABoundaryEvent { Enter = 1, @@ -1228,13 +718,17 @@ declare var UAButtonAdditionalPaddingKey: string; declare var UAButtonHeightKey: string; -declare class UACancelSchedulesAction extends NSObject implements UAAction { +declare class UACancelSchedulesAction extends NSObject implements UALegacyAction { static alloc(): UACancelSchedulesAction; // inherited from NSObject static new(): UACancelSchedulesAction; // inherited from NSObject readonly debugDescription: string; // inherited from NSObjectProtocol + readonly defaultNames: NSArray; // inherited from UALegacyAction + + readonly defaultPredicate: (p1: any, p2: number) => boolean; // inherited from UALegacyAction + readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol @@ -1245,14 +739,12 @@ declare class UACancelSchedulesAction extends NSObject implements UAAction { readonly; // inherited from NSObjectProtocol - acceptsArguments(_arguments: UAActionArguments): boolean; + acceptsArgumentValueSituation(_arguments: any, situation: number): boolean; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; - isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; @@ -1265,15 +757,13 @@ declare class UACancelSchedulesAction extends NSObject implements UAAction { performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; + performWithArgumentValueSituationPushUserInfoCompletionHandler(argument: any, situation: number, pushUserInfo: NSDictionary, completionHandler: () => void): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; } declare var UACancelSchedulesActionAll: string; @@ -1286,16 +776,16 @@ declare var UACancelSchedulesActionGroups: string; declare var UACancelSchedulesActionIDs: string; -declare class UAChannel extends NSObject implements UAChannelProtocol, UAChannelRegistrarDelegate, UAComponent, UAPushableComponent { +declare class UAChannel extends NSObject implements UAComponent, UAPushableComponent { static alloc(): UAChannel; // inherited from NSObject static new(): UAChannel; // inherited from NSObject - static readonly audienceAttributesKey: string; + readonly identifier: string; - static readonly audienceTagsKey: string; + isChannelTagRegistrationEnabled: boolean; - static readonly audienceUpdatedEvent: string; + tags: NSArray; static readonly channelCreatedEvent: string; @@ -1303,8 +793,6 @@ declare class UAChannel extends NSObject implements UAChannelProtocol, UAChannel static readonly channelIdentifierKey: string; - static readonly channelRegistrationFailedEvent: string; - static readonly channelUpdatedEvent: string; static readonly legacyTagsSettingsKey: string; @@ -1319,26 +807,12 @@ declare class UAChannel extends NSObject implements UAChannelProtocol, UAChannel readonly hash: number; // inherited from NSObjectProtocol - readonly identifier: string; // inherited from UAChannelProtocol - - isChannelTagRegistrationEnabled: boolean; // inherited from UAChannelProtocol - readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly pendingAttributeUpdates: NSArray; // inherited from UAChannelProtocol - - readonly pendingTagGroupUpdates: NSArray; // inherited from UAChannelProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - tags: NSArray; // inherited from UAChannelProtocol - readonly; // inherited from NSObjectProtocol - constructor(o: { dataStore: UAPreferenceDataStore; config: UARuntimeConfig; privacyManager: UAPrivacyManager; localeManager: LocaleManagerProtocol }); - - addRegistrationExtender(extender: (p1: UAChannelRegistrationPayload, p2: (p1: UAChannelRegistrationPayload) => void) => void): void; - addTag(tag: string): void; addTags(tags: NSArray | string[]): void; @@ -1351,14 +825,10 @@ declare class UAChannel extends NSObject implements UAChannelProtocol, UAChannel applyRemoteConfig(config: any): void; - channelCreatedWithChannelIDExisting(channelID: string, existing: boolean): void; - class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; - createChannelPayloadWithCompletionHandler(completionHandler: (p1: UAChannelRegistrationPayload) => void): void; - deepLink(deepLink: NSURL): boolean; editAttributes(): UAAttributesEditor; @@ -1371,9 +841,7 @@ declare class UAChannel extends NSObject implements UAChannelProtocol, UAChannel enableChannelCreation(): void; - fetchSubscriptionListsWithCompletionHandler(completionHandler: (p1: NSArray, p2: NSError) => void): UADisposable; - - initWithDataStoreConfigPrivacyManagerLocaleManager(dataStore: UAPreferenceDataStore, config: UARuntimeConfig, privacyManager: UAPrivacyManager, localeManager: LocaleManagerProtocol): this; + fetchSubscriptionListsWithCompletionHandler(completionHandler: (p1: NSArray, p2: NSError) => void): void; isEqual(object: any): boolean; @@ -1393,10 +861,6 @@ declare class UAChannel extends NSObject implements UAChannelProtocol, UAChannel receivedRemoteNotificationCompletionHandler(notification: NSDictionary, completionHandler: (p1: UIBackgroundFetchResult) => void): void; - registrationFailed(): void; - - registrationSucceeded(): void; - removeTag(tag: string): void; removeTags(tags: NSArray | string[]): void; @@ -1410,28 +874,6 @@ declare class UAChannel extends NSObject implements UAChannelProtocol, UAChannel self(): this; setTagsGroup(tags: NSArray | string[], group: string): void; - - updateRegistration(): void; - - updateRegistrationForcefully(forcefully: boolean): void; -} - -declare class UAChannelAPIClient extends NSObject { - static alloc(): UAChannelAPIClient; // inherited from NSObject - - static new(): UAChannelAPIClient; // inherited from NSObject - - constructor(o: { config: UARuntimeConfig }); - - constructor(o: { config: UARuntimeConfig; session: UARequestSession }); - - createChannelWithPayloadCompletionHandler(payload: UAChannelRegistrationPayload, completionHandler: (p1: UAChannelCreateResponse, p2: NSError) => void): UADisposable; - - initWithConfig(config: UARuntimeConfig): this; - - initWithConfigSession(config: UARuntimeConfig, session: UARequestSession): this; - - updateChannelWithIDWithPayloadCompletionHandler(channelID: string, payload: UAChannelRegistrationPayload, completionHandler: (p1: UAHTTPResponse, p2: NSError) => void): UADisposable; } declare class UAChannelCapture extends NSObject { @@ -1440,70 +882,6 @@ declare class UAChannelCapture extends NSObject { static new(): UAChannelCapture; // inherited from NSObject enabled: boolean; - - constructor(o: { config: UARuntimeConfig; dataStore: UAPreferenceDataStore; channel: UAChannel }); - - constructor(o: { config: UARuntimeConfig; dataStore: UAPreferenceDataStore; channel: UAChannelProtocol; notificationCenter: NSNotificationCenter; date: UADate; pasteboardProvider: () => UIPasteboard }); - - initWithConfigDataStoreChannel(config: UARuntimeConfig, dataStore: UAPreferenceDataStore, channel: UAChannel): this; - - initWithConfigDataStoreChannelNotificationCenterDatePasteboardProvider(config: UARuntimeConfig, dataStore: UAPreferenceDataStore, channel: UAChannelProtocol, notificationCenter: NSNotificationCenter, date: UADate, pasteboardProvider: () => UIPasteboard): this; -} - -declare class UAChannelCreateResponse extends UAHTTPResponse { - static alloc(): UAChannelCreateResponse; // inherited from NSObject - - static new(): UAChannelCreateResponse; // inherited from NSObject - - readonly channelID: string; - - constructor(o: { status: number; channelID: string }); - - initWithStatusChannelID(status: number, channelID: string): this; -} - -declare class UAChannelInfo extends NSObject implements NSCopying { - static alloc(): UAChannelInfo; // inherited from NSObject - - static new(): UAChannelInfo; // inherited from NSObject - - appVersion: string; - - carrier: string; - - contactID: string; - - country: string; - - deviceModel: string; - - deviceOS: string; - - iOSChannelSettings: UAIOSChannelSettings; - - isActive: boolean; - - isBackgroundEnabled: boolean; - - isOptedIn: boolean; - - language: string; - - locationEnabledNumber: number; - - pushAddress: string; - - sdkVersion: string; - - setTags: boolean; - - tagChanges: UATagChanges; - - tags: NSArray; - - timeZone: string; - - copyWithZone(zone: interop.Pointer | interop.Reference): any; } interface UAChannelProtocol { @@ -1511,14 +889,8 @@ interface UAChannelProtocol { isChannelTagRegistrationEnabled: boolean; - pendingAttributeUpdates: NSArray; - - pendingTagGroupUpdates: NSArray; - tags: NSArray; - addRegistrationExtender(extender: (p1: UAChannelRegistrationPayload, p2: (p1: UAChannelRegistrationPayload) => void) => void): void; - editAttributes(): UAAttributesEditor; editAttributes(editorBlock: (p1: UAAttributesEditor) => void): void; @@ -1537,60 +909,12 @@ interface UAChannelProtocol { enableChannelCreation(): void; - fetchSubscriptionListsWithCompletionHandler(completionHandler: (p1: NSArray, p2: NSError) => void): UADisposable; - - updateRegistration(): void; - - updateRegistrationForcefully(forcefully: boolean): void; + fetchSubscriptionListsWithCompletionHandler(completionHandler: (p1: NSArray, p2: NSError) => void): void; } declare var UAChannelProtocol: { prototype: UAChannelProtocol; }; -interface UAChannelRegistrarDelegate { - channelCreatedWithChannelIDExisting(channelID: string, existing: boolean): void; - - createChannelPayloadWithCompletionHandler(completionHandler: (p1: UAChannelRegistrationPayload) => void): void; - - registrationFailed(): void; - - registrationSucceeded(): void; -} -declare var UAChannelRegistrarDelegate: { - prototype: UAChannelRegistrarDelegate; -}; - -interface UAChannelRegistrarProtocol { - channelID: string; - - delegate: UAChannelRegistrarDelegate; - - performFullRegistration(): void; - - registerForcefully(forcefully: boolean): void; -} -declare var UAChannelRegistrarProtocol: { - prototype: UAChannelRegistrarProtocol; -}; - -declare class UAChannelRegistrationPayload extends NSObject implements NSCopying { - static alloc(): UAChannelRegistrationPayload; // inherited from NSObject - - static decodeError(data: NSData): UAChannelRegistrationPayload; - - static new(): UAChannelRegistrationPayload; // inherited from NSObject - - readonly channel: UAChannelInfo; - - identityHints: UAIdentityHints; - - copyWithZone(zone: interop.Pointer | interop.Reference): any; - - encodeWithError(): NSData; - - minimizePayloadWithPrevious(previous: UAChannelRegistrationPayload): UAChannelRegistrationPayload; -} - declare const enum UAChannelScope { App = 0, @@ -1705,6 +1029,8 @@ declare class UAConfig extends NSObject implements NSCopying { readonly appSecret: string; + autoPauseInAppAutomationOnLaunch: boolean; + chatURL: string; chatWebSocketURL: string; @@ -1713,8 +1039,6 @@ declare class UAConfig extends NSObject implements NSCopying { clearUserOnAppRestore: boolean; - customConfig: NSDictionary; - defaultAppKey: string; defaultAppSecret: string; @@ -1767,8 +1091,6 @@ declare class UAConfig extends NSObject implements NSCopying { site: UACloudSite; - suppressAllowListError: boolean; - constructor(o: { contentsOfFile: string }); copyWithZone(zone: interop.Pointer | interop.Reference): any; @@ -1776,8 +1098,6 @@ declare class UAConfig extends NSObject implements NSCopying { initWithContentsOfFile(path: string): this; validate(): boolean; - - validateWithLogIssues(logIssues: boolean): boolean; } declare class UAConnectionType extends NSObject { @@ -1792,25 +1112,19 @@ declare class UAConnectionType extends NSObject { static readonly wifi: string; } -declare class UAContact extends NSObject implements UAComponent, UAContactProtocol { +declare class UAContact extends NSObject implements UAComponent { static alloc(): UAContact; // inherited from NSObject static new(): UAContact; // inherited from NSObject - conflictDelegate: UAContactConflictDelegate; + static readonly contactConflictEvent: string; - static readonly attributesKey: string; - - static readonly audienceUpdatedEvent: string; - - static readonly contactChangedEvent: string; + static readonly contactConflictEventKey: string; static readonly maxNamedUserIDLength: number; static readonly shared: UAContact; - static readonly tagsKey: string; - componentEnabled: boolean; // inherited from UAComponent readonly debugDescription: string; // inherited from NSObjectProtocol @@ -1821,18 +1135,10 @@ declare class UAContact extends NSObject implements UAComponent, UAContactProtoc readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly namedUserID: string; // inherited from UAContactProtocol - - readonly pendingAttributeUpdates: NSArray; // inherited from UAContactProtocol - - readonly pendingTagGroupUpdates: NSArray; // inherited from UAContactProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly; // inherited from NSObjectProtocol - constructor(o: { dataStore: UAPreferenceDataStore; config: UARuntimeConfig; channel: UAChannel; privacyManager: UAPrivacyManager }); - airshipReady(): void; applyRemoteConfig(config: any): void; @@ -1851,11 +1157,11 @@ declare class UAContact extends NSObject implements UAComponent, UAContactProtoc editTagGroups(): UATagGroupsEditor; - fetchSubscriptionListsWithCompletionHandler(completionHandler: (p1: NSDictionary, p2: NSError) => void): UADisposable; + fetchSubscriptionListsWithCompletionHandler(completionHandler: (p1: NSDictionary, p2: NSError) => void): void; - identify(namedUserID: string): void; + getNamedUserIDWithCompletionHandler(completionHandler: (p1: string) => void): void; - initWithDataStoreConfigChannelPrivacyManager(dataStore: UAPreferenceDataStore, config: UARuntimeConfig, channel: UAChannel, privacyManager: UAPrivacyManager): this; + identify(namedUserID: string): void; isEqual(object: any): boolean; @@ -1884,38 +1190,23 @@ declare class UAContact extends NSObject implements UAComponent, UAContactProtoc self(): this; } -interface UAContactConflictDelegate { - onConflictWithAnonymousContactDataNamedUserID(anonymousContactData: UAContactData, namedUserID: string): void; -} -declare var UAContactConflictDelegate: { - prototype: UAContactConflictDelegate; -}; - -declare class UAContactData extends NSObject { - static alloc(): UAContactData; // inherited from NSObject +declare class UAContactConflictEvent extends NSObject { + static alloc(): UAContactConflictEvent; // inherited from NSObject - static new(): UAContactData; // inherited from NSObject + static new(): UAContactConflictEvent; // inherited from NSObject - readonly attributes: NSDictionary; + readonly attributes: NSDictionary; readonly channels: NSArray; + readonly conflictingNamedUserID: string; + readonly subscriptionLists: NSDictionary; readonly tags: NSDictionary>; - - constructor(o: { tags: NSDictionary>; attributes: NSDictionary; channels: NSArray | UAAssociatedChannel[]; subscriptionLists: NSDictionary }); - - initWithTagsAttributesChannelsSubscriptionLists(tags: NSDictionary>, attributes: NSDictionary, channels: NSArray | UAAssociatedChannel[], subscriptionLists: NSDictionary): this; } interface UAContactProtocol { - namedUserID: string; - - pendingAttributeUpdates: NSArray; - - pendingTagGroupUpdates: NSArray; - associateChannelType(channelID: string, type: UAChannelType): void; editAttributes(): UAAttributesEditor; @@ -1930,7 +1221,9 @@ interface UAContactProtocol { editTagGroups(editorBlock: (p1: UATagGroupsEditor) => void): void; - fetchSubscriptionListsWithCompletionHandler(completionHandler: (p1: NSDictionary, p2: NSError) => void): UADisposable; + fetchSubscriptionListsWithCompletionHandler(completionHandler: (p1: NSDictionary, p2: NSError) => void): void; + + getNamedUserIDWithCompletionHandler(completionHandler: (p1: string) => void): void; identify(namedUserID: string): void; @@ -1944,6 +1237,12 @@ interface UAContactProtocol { } declare var UAContactProtocol: { prototype: UAContactProtocol; + + contactConflictEvent(): string; + + contactConflictEventKey(): string; + + maxNamedUserIDLength(): number; }; declare class UACoreData extends NSObject { @@ -2083,14 +1382,6 @@ declare class UACustomEvent extends NSObject implements UAEvent { track(): void; } -declare class UADate extends NSObject { - static alloc(): UADate; // inherited from NSObject - - static new(): UADate; // inherited from NSObject - - readonly now: Date; -} - declare class UADateFormatter extends NSObject { static alloc(): UADateFormatter; // inherited from NSObject @@ -2115,297 +1406,325 @@ declare const enum UADateFormatterFormat { RelativeFullDate = 5, } -declare class UADeepLinkAction extends NSObject implements UAAction { - static alloc(): UADeepLinkAction; // inherited from NSObject +interface UADeepLinkDelegate { + receivedDeepLinkCompletionHandler(deepLink: NSURL, completionHandler: () => void): void; +} +declare var UADeepLinkDelegate: { + prototype: UADeepLinkDelegate; +}; - static new(): UADeepLinkAction; // inherited from NSObject +declare class UADeferredSchedule extends UASchedule { + static alloc(): UADeferredSchedule; // inherited from NSObject - readonly debugDescription: string; // inherited from NSObjectProtocol + static new(): UADeferredSchedule; // inherited from NSObject - readonly description: string; // inherited from NSObjectProtocol + readonly deferredData: UAScheduleDeferredData; +} - readonly hash: number; // inherited from NSObjectProtocol +declare class UADispatcher extends NSObject { + static alloc(): UADispatcher; // inherited from NSObject - readonly isProxy: boolean; // inherited from NSObjectProtocol + static new(): UADispatcher; // inherited from NSObject - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + static serial(): UADispatcher; - readonly; // inherited from NSObjectProtocol + static serialUtility(): UADispatcher; - acceptsArguments(_arguments: UAActionArguments): boolean; + static readonly global: UADispatcher; - class(): typeof NSObject; + static readonly main: UADispatcher; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + static readonly sharedSerialUtility: UADispatcher; - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; + dispatchAfterBlock(delay: number, block: () => void): UADisposable; - isEqual(object: any): boolean; + dispatchAfterTimebaseBlock(delay: number, timebase: UADispatcherTimeBase, block: () => void): UADisposable; - isKindOfClass(aClass: typeof NSObject): boolean; + dispatchAsync(block: () => void): void; - isMemberOfClass(aClass: typeof NSObject): boolean; + dispatchAsyncIfNecessary(block: () => void): void; - performSelector(aSelector: string): any; + dispatchSync(block: () => void): void; - performSelectorWithObject(aSelector: string, object: any): any; + doSync(block: () => void): void; +} - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; +declare const enum UADispatcherTimeBase { + Wall = 0, - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; + System = 1, +} - respondsToSelector(aSelector: string): boolean; +declare class UADisposable extends NSObject { + static alloc(): UADisposable; // inherited from NSObject - retainCount(): number; + static new(): UADisposable; // inherited from NSObject - self(): this; + constructor(); - willPerformWithArguments(_arguments: UAActionArguments): void; -} + dispose(): void; -interface UADeepLinkDelegate { - receivedDeepLinkCompletionHandler(deepLink: NSURL, completionHandler: () => void): void; + init(disposalBlock: () => void): this; } -declare var UADeepLinkDelegate: { - prototype: UADeepLinkDelegate; -}; -declare class UADefaultMessageCenterListViewController extends UIViewController implements UIScrollViewDelegate, UITableViewDataSource, UITableViewDelegate { - static alloc(): UADefaultMessageCenterListViewController; // inherited from NSObject +declare class UAEmailRegistrationOptions extends NSObject { + static alloc(): UAEmailRegistrationOptions; // inherited from NSObject - static new(): UADefaultMessageCenterListViewController; // inherited from NSObject + static commercialOptionsWithTransactionalOptedInCommercialOptedInProperties(transactionalOptedIn: Date, commercialOptedIn: Date, properties: NSDictionary): UAEmailRegistrationOptions; - delegate: UAMessageCenterListViewDelegate; + static new(): UAEmailRegistrationOptions; // inherited from NSObject - filter: NSPredicate; + static optionsWithPropertiesDoubleOptIn(properties: NSDictionary, doubleOptIn: boolean): UAEmailRegistrationOptions; - messageCenterStyle: UAMessageCenterStyle; + static optionsWithTransactionalOptedInPropertiesDoubleOptIn(transactionalOptedIn: Date, properties: NSDictionary, doubleOptIn: boolean): UAEmailRegistrationOptions; +} - selectedIndexPath: NSIndexPath; +interface UAEvent extends NSObjectProtocol { + data: NSDictionary; - selectedMessageID: string; + eventType: string; - readonly debugDescription: string; // inherited from NSObjectProtocol + priority: UAEventPriority; - readonly description: string; // inherited from NSObjectProtocol + isValid?(): boolean; +} +declare var UAEvent: { + prototype: UAEvent; +}; - readonly hash: number; // inherited from NSObjectProtocol +declare const enum UAEventPriority { + Normal = 0, - readonly isProxy: boolean; // inherited from NSObjectProtocol + High = 1, +} - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol +interface UAExperimentDataProvider { + evaluateGlobalHoldoutsWithInfoContactIdCompletionHandler(info: MessageInfo, contactId: string, completionHandler: (p1: ExperimentResult) => void): void; +} +declare var UAExperimentDataProvider: { + prototype: UAExperimentDataProvider; +}; - readonly; // inherited from NSObjectProtocol +declare const enum UAFeatures { + InAppAutomation = 1, - class(): typeof NSObject; + MessageCenter = 2, - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + Push = 4, - indexPathForPreferredFocusedViewInTableView(tableView: UITableView): NSIndexPath; + Analytics = 16, - isEqual(object: any): boolean; + TagsAndAttributes = 32, - isKindOfClass(aClass: typeof NSObject): boolean; + Contacts = 64, - isMemberOfClass(aClass: typeof NSObject): boolean; + All = 119, +} - numberOfSectionsInTableView(tableView: UITableView): number; +declare var UAFeaturesNone: UAFeatures; - performSelector(aSelector: string): any; +declare var UAFullScreenBodyStyleKey: string; - performSelectorWithObject(aSelector: string, object: any): any; +declare var UAFullScreenButtonStyleKey: string; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; +declare var UAFullScreenDismissIconResourceKey: string; - respondsToSelector(aSelector: string): boolean; +declare var UAFullScreenHeaderStyleKey: string; - retainCount(): number; +declare var UAFullScreenMediaStyleKey: string; - scrollViewDidChangeAdjustedContentInset(scrollView: UIScrollView): void; +declare var UAFullScreenStyleFileName: string; - scrollViewDidEndDecelerating(scrollView: UIScrollView): void; +declare var UAFullScreenTextStyleKey: string; - scrollViewDidEndDraggingWillDecelerate(scrollView: UIScrollView, decelerate: boolean): void; +declare var UAHTMLAdditionalPaddingKey: string; - scrollViewDidEndScrollingAnimation(scrollView: UIScrollView): void; +declare var UAHTMLDismissIconResourceKey: string; - scrollViewDidEndZoomingWithViewAtScale(scrollView: UIScrollView, view: UIView, scale: number): void; +declare var UAHTMLHideDismissIconKey: string; - scrollViewDidScroll(scrollView: UIScrollView): void; +declare var UAHTMLMaxHeightKey: string; - scrollViewDidScrollToTop(scrollView: UIScrollView): void; +declare var UAHTMLMaxWidthKey: string; - scrollViewDidZoom(scrollView: UIScrollView): void; +declare var UAHTMLStyleFileName: string; - scrollViewShouldScrollToTop(scrollView: UIScrollView): boolean; +declare class UAHTTPResponse extends NSObject { + static alloc(): UAHTTPResponse; // inherited from NSObject - scrollViewWillBeginDecelerating(scrollView: UIScrollView): void; + static new(): UAHTTPResponse; // inherited from NSObject - scrollViewWillBeginDragging(scrollView: UIScrollView): void; + readonly isClientError: boolean; - scrollViewWillBeginZoomingWithView(scrollView: UIScrollView, view: UIView): void; + readonly isServerError: boolean; - scrollViewWillEndDraggingWithVelocityTargetContentOffset(scrollView: UIScrollView, velocity: CGPoint, targetContentOffset: interop.Pointer | interop.Reference): void; + readonly isSuccess: boolean; - sectionIndexTitlesForTableView(tableView: UITableView): NSArray; + readonly status: number; - self(): this; + constructor(o: { status: number }); - tableViewAccessoryButtonTappedForRowWithIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + initWithStatus(status: number): this; +} - tableViewAccessoryTypeForRowWithIndexPath(tableView: UITableView, indexPath: NSIndexPath): UITableViewCellAccessoryType; +interface UAImageProvider { + getWithUrl(url: NSURL): UAirshipImageData; +} +declare var UAImageProvider: { + prototype: UAImageProvider; +}; - tableViewCanEditRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; +declare class UAInAppAutomation extends NSObject implements UAComponent { + static alloc(): UAInAppAutomation; // inherited from NSObject - tableViewCanFocusRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + static new(): UAInAppAutomation; // inherited from NSObject - tableViewCanMoveRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + readonly inAppMessageManager: UAInAppMessageManager; - tableViewCanPerformActionForRowAtIndexPathWithSender(tableView: UITableView, action: string, indexPath: NSIndexPath, sender: any): boolean; + paused: boolean; - tableViewCanPerformPrimaryActionForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + static readonly shared: UAInAppAutomation; - tableViewCellForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): UITableViewCell; + componentEnabled: boolean; // inherited from UAComponent - tableViewCommitEditingStyleForRowAtIndexPath(tableView: UITableView, editingStyle: UITableViewCellEditingStyle, indexPath: NSIndexPath): void; + readonly debugDescription: string; // inherited from NSObjectProtocol - tableViewContextMenuConfigurationForRowAtIndexPathPoint(tableView: UITableView, indexPath: NSIndexPath, point: CGPoint): UIContextMenuConfiguration; + readonly description: string; // inherited from NSObjectProtocol - tableViewDidBeginMultipleSelectionInteractionAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + readonly hash: number; // inherited from NSObjectProtocol - tableViewDidDeselectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + readonly isProxy: boolean; // inherited from NSObjectProtocol - tableViewDidEndDisplayingCellForRowAtIndexPath(tableView: UITableView, cell: UITableViewCell, indexPath: NSIndexPath): void; + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - tableViewDidEndDisplayingFooterViewForSection(tableView: UITableView, view: UIView, section: number): void; + readonly; // inherited from NSObjectProtocol - tableViewDidEndDisplayingHeaderViewForSection(tableView: UITableView, view: UIView, section: number): void; + airshipReady(): void; - tableViewDidEndEditingRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + applyRemoteConfig(config: any): void; - tableViewDidEndMultipleSelectionInteraction(tableView: UITableView): void; + cancelActionSchedulesWithGroupCompletionHandler(group: string, completionHandler: (p1: boolean) => void): void; - tableViewDidHighlightRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + cancelMessageSchedulesWithGroupCompletionHandler(group: string, completionHandler: (p1: boolean) => void): void; - tableViewDidSelectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + cancelScheduleWithIDCompletionHandler(scheduleID: string, completionHandler: (p1: boolean) => void): void; - tableViewDidUnhighlightRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + cancelSchedulesWithGroupCompletionHandler(group: string, completionHandler: (p1: boolean) => void): void; - tableViewDidUpdateFocusInContextWithAnimationCoordinator(tableView: UITableView, context: UITableViewFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void; + checkAudienceCompletionHandler(audience: UAScheduleAudience, completionHandler: (p1: boolean, p2: NSError) => void): void; - tableViewEditActionsForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSArray; + class(): typeof NSObject; - tableViewEditingStyleForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): UITableViewCellEditingStyle; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - tableViewEstimatedHeightForFooterInSection(tableView: UITableView, section: number): number; + deepLink(deepLink: NSURL): boolean; - tableViewEstimatedHeightForHeaderInSection(tableView: UITableView, section: number): number; + editScheduleWithIDEditsCompletionHandler(identifier: string, edits: UAScheduleEdits, completionHandler: (p1: boolean) => void): void; - tableViewEstimatedHeightForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): number; + getActionScheduleWithIDCompletionHandler(identifier: string, completionHandler: (p1: UAActionSchedule) => void): void; - tableViewHeightForFooterInSection(tableView: UITableView, section: number): number; + getActionSchedules(completionHandler: (p1: NSArray) => void): void; - tableViewHeightForHeaderInSection(tableView: UITableView, section: number): number; + getActionSchedulesWithGroupCompletionHandler(group: string, completionHandler: (p1: NSArray) => void): void; - tableViewHeightForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): number; + getMessageScheduleWithIDCompletionHandler(identifier: string, completionHandler: (p1: UAInAppMessageSchedule) => void): void; - tableViewIndentationLevelForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): number; + getMessageSchedules(completionHandler: (p1: NSArray) => void): void; - tableViewLeadingSwipeActionsConfigurationForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): UISwipeActionsConfiguration; + getMessageSchedulesWithGroupCompletionHandler(group: string, completionHandler: (p1: NSArray) => void): void; - tableViewMoveRowAtIndexPathToIndexPath(tableView: UITableView, sourceIndexPath: NSIndexPath, destinationIndexPath: NSIndexPath): void; + getSchedules(completionHandler: (p1: NSArray) => void): void; - tableViewNumberOfRowsInSection(tableView: UITableView, section: number): number; + isEqual(object: any): boolean; - tableViewPerformActionForRowAtIndexPathWithSender(tableView: UITableView, action: string, indexPath: NSIndexPath, sender: any): void; + isKindOfClass(aClass: typeof NSObject): boolean; - tableViewPerformPrimaryActionForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + isMemberOfClass(aClass: typeof NSObject): boolean; - tableViewPreviewForDismissingContextMenuWithConfiguration(tableView: UITableView, configuration: UIContextMenuConfiguration): UITargetedPreview; + performSelector(aSelector: string): any; - tableViewPreviewForHighlightingContextMenuWithConfiguration(tableView: UITableView, configuration: UIContextMenuConfiguration): UITargetedPreview; + performSelectorWithObject(aSelector: string, object: any): any; - tableViewSectionForSectionIndexTitleAtIndex(tableView: UITableView, title: string, index: number): number; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - tableViewSelectionFollowsFocusForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + respondsToSelector(aSelector: string): boolean; - tableViewShouldBeginMultipleSelectionInteractionAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + retainCount(): number; - tableViewShouldHighlightRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + scheduleCompletionHandler(schedule: UASchedule, completionHandler: (p1: boolean) => void): void; - tableViewShouldIndentWhileEditingRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + scheduleMultipleCompletionHandler(schedules: NSArray | UASchedule[], completionHandler: (p1: boolean) => void): void; - tableViewShouldShowMenuForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + self(): this; +} - tableViewShouldSpringLoadRowAtIndexPathWithContext(tableView: UITableView, indexPath: NSIndexPath, context: UISpringLoadedInteractionContext): boolean; +declare class UAInAppMessage extends NSObject { + static alloc(): UAInAppMessage; // inherited from NSObject - tableViewShouldUpdateFocusInContext(tableView: UITableView, context: UITableViewFocusUpdateContext): boolean; + static messageWithBuilderBlock(builderBlock: (p1: UAInAppMessageBuilder) => void): UAInAppMessage; - tableViewTargetIndexPathForMoveFromRowAtIndexPathToProposedIndexPath(tableView: UITableView, sourceIndexPath: NSIndexPath, proposedDestinationIndexPath: NSIndexPath): NSIndexPath; + static new(): UAInAppMessage; // inherited from NSObject - tableViewTitleForDeleteConfirmationButtonForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): string; + readonly actions: NSDictionary; - tableViewTitleForFooterInSection(tableView: UITableView, section: number): string; + readonly displayBehavior: string; - tableViewTitleForHeaderInSection(tableView: UITableView, section: number): string; + readonly displayContent: UAInAppMessageDisplayContent; - tableViewTrailingSwipeActionsConfigurationForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): UISwipeActionsConfiguration; + readonly displayType: UAInAppMessageDisplayType; - tableViewViewForFooterInSection(tableView: UITableView, section: number): UIView; + readonly extras: NSDictionary; - tableViewViewForHeaderInSection(tableView: UITableView, section: number): UIView; + readonly isReportingEnabled: boolean; - tableViewWillBeginEditingRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + readonly name: string; - tableViewWillDeselectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath; + extend(builderBlock: (p1: UAInAppMessageBuilder) => void): UAInAppMessage; +} - tableViewWillDisplayCellForRowAtIndexPath(tableView: UITableView, cell: UITableViewCell, indexPath: NSIndexPath): void; +interface UAInAppMessageAdapterProtocol extends NSObjectProtocol { + display?(completionHandler: (p1: UAInAppMessageResolution) => void): void; - tableViewWillDisplayContextMenuWithConfigurationAnimator(tableView: UITableView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating): void; + isReadyToDisplay(): boolean; - tableViewWillDisplayFooterViewForSection(tableView: UITableView, view: UIView, section: number): void; + prepareWithAssetsCompletionHandler(assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; +} +declare var UAInAppMessageAdapterProtocol: { + prototype: UAInAppMessageAdapterProtocol; - tableViewWillDisplayHeaderViewForSection(tableView: UITableView, view: UIView, section: number): void; + adapterForMessage(message: UAInAppMessage): UAInAppMessageAdapterProtocol; +}; - tableViewWillEndContextMenuInteractionWithConfigurationAnimator(tableView: UITableView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating): void; +declare class UAInAppMessageAssetManager extends NSObject { + static alloc(): UAInAppMessageAssetManager; // inherited from NSObject - tableViewWillPerformPreviewActionForMenuWithConfigurationAnimator(tableView: UITableView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating): void; + static new(): UAInAppMessageAssetManager; // inherited from NSObject - tableViewWillSelectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath; + cachePolicyDelegate: UAInAppMessageCachePolicyDelegate; - viewForZoomingInScrollView(scrollView: UIScrollView): UIView; + prepareAssetsDelegate: UAInAppMessagePrepareAssetsDelegate; } -declare class UADefaultMessageCenterMessageViewController extends UIViewController { - static alloc(): UADefaultMessageCenterMessageViewController; // inherited from NSObject - - static new(): UADefaultMessageCenterMessageViewController; // inherited from NSObject - - delegate: UAMessageCenterMessageViewDelegate; - - disableMessageLinkPreviewAndCallouts: boolean; +declare class UAInAppMessageAssets extends NSObject { + static alloc(): UAInAppMessageAssets; // inherited from NSObject - readonly message: UAInboxMessage; + static new(): UAInAppMessageAssets; // inherited from NSObject - clearMessage(): void; + getCacheURL(assetURL: NSURL): NSURL; - loadMessageForID(messageID: string): void; + isCached(assetURL: NSURL): boolean; } -declare class UADefaultMessageCenterSplitViewController extends UISplitViewController implements UAMessageCenterListViewDelegate, UAMessageCenterMessageViewDelegate { - static alloc(): UADefaultMessageCenterSplitViewController; // inherited from NSObject - - static new(): UADefaultMessageCenterSplitViewController; // inherited from NSObject - - disableMessageLinkPreviewAndCallouts: boolean; +declare var UAInAppMessageBackgroundColorKey: string; - filter: NSPredicate; +declare class UAInAppMessageBannerAdapter extends NSObject implements UAInAppMessageAdapterProtocol { + static adapterForMessage(message: UAInAppMessage): UAInAppMessageBannerAdapter; - readonly listViewController: UADefaultMessageCenterListViewController; + static alloc(): UAInAppMessageBannerAdapter; // inherited from NSObject - messageCenterStyle: UAMessageCenterStyle; + static new(): UAInAppMessageBannerAdapter; // inherited from NSObject - readonly messageViewController: UADefaultMessageCenterMessageViewController; + style: UAInAppMessageBannerStyle; readonly debugDescription: string; // inherited from NSObjectProtocol @@ -2423,9 +1742,7 @@ declare class UADefaultMessageCenterSplitViewController extends UISplitViewContr conformsToProtocol(aProtocol: any /* Protocol */): boolean; - didSelectMessageWithID(messageID: string): void; - - displayMessageForID(messageID: string): void; + display(completionHandler: (p1: UAInAppMessageResolution) => void): void; isEqual(object: any): boolean; @@ -2433,13 +1750,7 @@ declare class UADefaultMessageCenterSplitViewController extends UISplitViewContr isMemberOfClass(aClass: typeof NSObject): boolean; - messageClosed(messageID: string): void; - - messageLoadFailedError(messageID: string, error: NSError): void; - - messageLoadStarted(messageID: string): void; - - messageLoadSucceeded(messageID: string): void; + isReadyToDisplay(): boolean; performSelector(aSelector: string): any; @@ -2447,83 +1758,117 @@ declare class UADefaultMessageCenterSplitViewController extends UISplitViewContr performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + prepareWithAssetsCompletionHandler(assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; + respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; - - shouldClearSelectionOnViewWillAppear(): boolean; } -declare class UADefaultMessageCenterSplitViewDelegate extends NSObject implements UISplitViewControllerDelegate { - static alloc(): UADefaultMessageCenterSplitViewDelegate; // inherited from NSObject - - static new(): UADefaultMessageCenterSplitViewDelegate; // inherited from NSObject +declare const enum UAInAppMessageBannerContentLayoutType { + MediaLeft = 0, - constructor(o: { listViewController: UADefaultMessageCenterListViewController }); + MediaRight = 1, +} - initWithListViewController(listViewController: UADefaultMessageCenterListViewController): this; +declare class UAInAppMessageBannerDisplayContent extends UAInAppMessageDisplayContent { + static alloc(): UAInAppMessageBannerDisplayContent; // inherited from NSObject - primaryViewControllerForCollapsingSplitViewController(splitViewController: UISplitViewController): UIViewController; + static displayContentWithBuilderBlock(builderBlock: (p1: UAInAppMessageBannerDisplayContentBuilder) => void): UAInAppMessageBannerDisplayContent; - primaryViewControllerForExpandingSplitViewController(splitViewController: UISplitViewController): UIViewController; + static new(): UAInAppMessageBannerDisplayContent; // inherited from NSObject - splitViewControllerCollapseSecondaryViewControllerOntoPrimaryViewController(splitViewController: UISplitViewController, secondaryViewController: UIViewController, primaryViewController: UIViewController): boolean; + readonly actions: NSDictionary; - splitViewControllerDidCollapse(svc: UISplitViewController): void; + readonly backgroundColor: UIColor; - splitViewControllerDidExpand(svc: UISplitViewController): void; + readonly body: UAInAppMessageTextInfo; - splitViewControllerDisplayModeForExpandingToProposedDisplayMode(svc: UISplitViewController, proposedDisplayMode: UISplitViewControllerDisplayMode): UISplitViewControllerDisplayMode; + readonly borderRadiusPoints: number; - splitViewControllerInteractivePresentationGestureDidEnd(svc: UISplitViewController): void; + readonly buttonLayout: UAInAppMessageButtonLayoutType; - splitViewControllerInteractivePresentationGestureWillBegin(svc: UISplitViewController): void; + readonly buttons: NSArray; - splitViewControllerPopoverControllerWillPresentViewController(svc: UISplitViewController, pc: UIPopoverController, aViewController: UIViewController): void; + readonly contentLayout: UAInAppMessageBannerContentLayoutType; - splitViewControllerPreferredInterfaceOrientationForPresentation(splitViewController: UISplitViewController): UIInterfaceOrientation; + readonly dismissButtonColor: UIColor; - splitViewControllerSeparateSecondaryViewControllerFromPrimaryViewController(splitViewController: UISplitViewController, primaryViewController: UIViewController): UIViewController; + readonly durationSeconds: number; - splitViewControllerShouldHideViewControllerInOrientation(svc: UISplitViewController, vc: UIViewController, orientation: UIInterfaceOrientation): boolean; + readonly heading: UAInAppMessageTextInfo; - splitViewControllerShowDetailViewControllerSender(splitViewController: UISplitViewController, vc: UIViewController, sender: any): boolean; + readonly media: UAInAppMessageMediaInfo; - splitViewControllerShowViewControllerSender(splitViewController: UISplitViewController, vc: UIViewController, sender: any): boolean; + readonly placement: UAInAppMessageBannerPlacementType; - splitViewControllerSupportedInterfaceOrientations(splitViewController: UISplitViewController): UIInterfaceOrientationMask; + extend(builderBlock: (p1: UAInAppMessageBannerDisplayContentBuilder) => void): UAInAppMessageBannerDisplayContent; +} - splitViewControllerTopColumnForCollapsingToProposedTopColumn(svc: UISplitViewController, proposedTopColumn: UISplitViewControllerColumn): UISplitViewControllerColumn; +declare class UAInAppMessageBannerDisplayContentBuilder extends NSObject { + static alloc(): UAInAppMessageBannerDisplayContentBuilder; // inherited from NSObject - splitViewControllerWillChangeToDisplayMode(svc: UISplitViewController, displayMode: UISplitViewControllerDisplayMode): void; + static new(): UAInAppMessageBannerDisplayContentBuilder; // inherited from NSObject - splitViewControllerWillHideColumn(svc: UISplitViewController, column: UISplitViewControllerColumn): void; + actions: NSDictionary; - splitViewControllerWillHideViewControllerWithBarButtonItemForPopoverController(svc: UISplitViewController, aViewController: UIViewController, barButtonItem: UIBarButtonItem, pc: UIPopoverController): void; + backgroundColor: UIColor; - splitViewControllerWillShowColumn(svc: UISplitViewController, column: UISplitViewControllerColumn): void; + body: UAInAppMessageTextInfo; - splitViewControllerWillShowViewControllerInvalidatingBarButtonItem(svc: UISplitViewController, aViewController: UIViewController, barButtonItem: UIBarButtonItem): void; + borderRadiusPoints: number; - targetDisplayModeForActionInSplitViewController(svc: UISplitViewController): UISplitViewControllerDisplayMode; -} + buttonLayout: UAInAppMessageButtonLayoutType; -declare class UADefaultMessageCenterUI extends NSObject implements UAMessageCenterDisplayDelegate { - static alloc(): UADefaultMessageCenterUI; // inherited from NSObject + buttons: NSArray; - static new(): UADefaultMessageCenterUI; // inherited from NSObject + contentLayout: UAInAppMessageBannerContentLayoutType; - disableMessageLinkPreviewAndCallouts: boolean; + dismissButtonColor: UIColor; - filter: NSPredicate; + durationSeconds: number; - messageCenterStyle: UAMessageCenterStyle; + heading: UAInAppMessageTextInfo; - title: string; + media: UAInAppMessageMediaInfo; - readonly debugDescription: string; // inherited from NSObjectProtocol + placement: UAInAppMessageBannerPlacementType; + + isValid(): boolean; +} + +declare var UAInAppMessageBannerMaxButtons: number; + +declare const enum UAInAppMessageBannerPlacementType { + Top = 0, + + Bottom = 1, +} + +declare class UAInAppMessageBannerStyle extends NSObject implements UAInAppMessageStyleProtocol { + static alloc(): UAInAppMessageBannerStyle; // inherited from NSObject + + static new(): UAInAppMessageBannerStyle; // inherited from NSObject + + static style(): UAInAppMessageBannerStyle; + + static styleWithContentsOfFile(path: string): UAInAppMessageBannerStyle; + + additionalPadding: UAPadding; + + bodyStyle: UAInAppMessageTextStyle; + + buttonStyle: UAInAppMessageButtonStyle; + + headerStyle: UAInAppMessageTextStyle; + + maxWidth: number; + + mediaStyle: UAInAppMessageMediaStyle; + + readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol @@ -2539,12 +1884,6 @@ declare class UADefaultMessageCenterUI extends NSObject implements UAMessageCent conformsToProtocol(aProtocol: any /* Protocol */): boolean; - dismissMessageCenterAnimated(animated: boolean): void; - - displayMessageCenterAnimated(animated: boolean): void; - - displayMessageCenterForMessageIDAnimated(messageID: string, animated: boolean): void; - isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; @@ -2564,157 +1903,153 @@ declare class UADefaultMessageCenterUI extends NSObject implements UAMessageCent self(): this; } -declare class UADeferredSchedule extends UASchedule { - static alloc(): UADeferredSchedule; // inherited from NSObject +declare var UAInAppMessageBodyKey: string; - static new(): UADeferredSchedule; // inherited from NSObject +declare var UAInAppMessageBorderRadiusKey: string; - readonly deferredData: UAScheduleDeferredData; -} +declare class UAInAppMessageBuilder extends NSObject { + static alloc(): UAInAppMessageBuilder; // inherited from NSObject -declare class UADelay extends NSObject implements UADelayProtocol { - static alloc(): UADelay; // inherited from NSObject + static new(): UAInAppMessageBuilder; // inherited from NSObject - static new(): UADelay; // inherited from NSObject + actions: NSDictionary; - constructor(); + displayBehavior: string; - cancel(): void; + displayContent: UAInAppMessageDisplayContent; - init(seconds: number): this; + extras: NSDictionary; - start(): void; -} + isReportingEnabled: boolean; -interface UADelayProtocol { - cancel(): void; + name: string; - start(): void; + isValid(): boolean; } -declare var UADelayProtocol: { - prototype: UADelayProtocol; -}; - -declare class UADispatcher extends NSObject { - static alloc(): UADispatcher; // inherited from NSObject - static new(): UADispatcher; // inherited from NSObject +declare class UAInAppMessageButtonInfo extends NSObject { + static alloc(): UAInAppMessageButtonInfo; // inherited from NSObject - static serial(): UADispatcher; + static buttonInfoWithBuilderBlock(builderBlock: (p1: UAInAppMessageButtonInfoBuilder) => void): UAInAppMessageButtonInfo; - static serialUtility(): UADispatcher; + static new(): UAInAppMessageButtonInfo; // inherited from NSObject - static readonly global: UADispatcher; + readonly actions: NSDictionary; - static readonly main: UADispatcher; + readonly backgroundColor: UIColor; - dispatchAfterBlock(delay: number, block: () => void): UADisposable; + readonly behavior: UAInAppMessageButtonInfoBehaviorType; - dispatchAfterTimebaseBlock(delay: number, timebase: UADispatcherTimeBase, block: () => void): UADisposable; + readonly borderColor: UIColor; - dispatchAsync(block: () => void): void; + readonly borderRadiusPoints: number; - dispatchAsyncIfNecessary(block: () => void): void; + readonly identifier: string; - dispatchSync(block: () => void): void; + readonly label: UAInAppMessageTextInfo; - doSync(block: () => void): void; + extend(builderBlock: (p1: UAInAppMessageButtonInfoBuilder) => void): UAInAppMessageButtonInfo; } -declare const enum UADispatcherTimeBase { - Wall = 0, +declare const enum UAInAppMessageButtonInfoBehaviorType { + Dismiss = 0, - System = 1, + Cancel = 1, } -declare class UADisposable extends NSObject { - static alloc(): UADisposable; // inherited from NSObject +declare class UAInAppMessageButtonInfoBuilder extends NSObject { + static alloc(): UAInAppMessageButtonInfoBuilder; // inherited from NSObject - static new(): UADisposable; // inherited from NSObject + static new(): UAInAppMessageButtonInfoBuilder; // inherited from NSObject - constructor(); + actions: NSDictionary; - dispose(): void; + backgroundColor: UIColor; - init(disposalBlock: () => void): this; -} + behavior: UAInAppMessageButtonInfoBehaviorType; -declare class UAEmailRegistrationOptions extends NSObject { - static alloc(): UAEmailRegistrationOptions; // inherited from NSObject + borderColor: UIColor; - static commercialOptionsWithTransactionalOptedInCommercialOptedInProperties(transactionalOptedIn: Date, commercialOptedIn: Date, properties: NSDictionary): UAEmailRegistrationOptions; + borderRadiusPoints: number; - static new(): UAEmailRegistrationOptions; // inherited from NSObject + identifier: string; - static optionsWithPropertiesDoubleOptIn(properties: NSDictionary, doubleOptIn: boolean): UAEmailRegistrationOptions; + label: UAInAppMessageTextInfo; - static optionsWithTransactionalOptedInPropertiesDoubleOptIn(transactionalOptedIn: Date, properties: NSDictionary, doubleOptIn: boolean): UAEmailRegistrationOptions; + isValid(): boolean; } -declare class UAEmptyAction extends NSObject implements UAAction { - static alloc(): UAEmptyAction; // inherited from NSObject - - static new(): UAEmptyAction; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol +declare var UAInAppMessageButtonInfoIDLimit: number; - readonly description: string; // inherited from NSObjectProtocol +declare var UAInAppMessageButtonLayoutJoinedValue: string; - readonly hash: number; // inherited from NSObjectProtocol +declare var UAInAppMessageButtonLayoutKey: string; - readonly isProxy: boolean; // inherited from NSObjectProtocol +declare var UAInAppMessageButtonLayoutSeparateValue: string; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol +declare var UAInAppMessageButtonLayoutStackedValue: string; - readonly; // inherited from NSObjectProtocol +declare const enum UAInAppMessageButtonLayoutType { + Stacked = 0, - acceptsArguments(_arguments: UAActionArguments): boolean; + Separate = 1, - class(): typeof NSObject; + Joined = 2, +} - conformsToProtocol(aProtocol: any /* Protocol */): boolean; +declare class UAInAppMessageButtonStyle extends NSObject { + static alloc(): UAInAppMessageButtonStyle; // inherited from NSObject - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; + static new(): UAInAppMessageButtonStyle; // inherited from NSObject - isEqual(object: any): boolean; + static styleWithAdditionalPaddingButtonTextStyleButtonHeightStackedButtonSpacingSeparatedButtonSpacingBorderWidth(additionalPadding: UAPadding, textStyle: UAInAppMessageTextStyle, buttonHeight: number, stackedButtonSpacing: number, separatedButtonSpacing: number, borderWidth: number): UAInAppMessageButtonStyle; - isKindOfClass(aClass: typeof NSObject): boolean; + static styleWithDictionary(buttonStyle: NSDictionary): UAInAppMessageButtonStyle; - isMemberOfClass(aClass: typeof NSObject): boolean; + additionalPadding: UAPadding; - performSelector(aSelector: string): any; + borderWidth: number; - performSelectorWithObject(aSelector: string, object: any): any; + buttonHeight: number; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + buttonTextStyle: UAInAppMessageTextStyle; - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; + separatedButtonSpacing: number; - respondsToSelector(aSelector: string): boolean; + stackedButtonSpacing: number; +} - retainCount(): number; +declare var UAInAppMessageButtonsKey: string; - self(): this; +interface UAInAppMessageCachePolicyDelegate extends NSObjectProtocol { + shouldCacheOnSchedule(message: UAInAppMessage): boolean; - willPerformWithArguments(_arguments: UAActionArguments): void; + shouldPersistCacheAfterDisplay(message: UAInAppMessage): boolean; } +declare var UAInAppMessageCachePolicyDelegate: { + prototype: UAInAppMessageCachePolicyDelegate; +}; + +declare var UAInAppMessageContentLayoutKey: string; -declare class UAEnableFeatureAction extends NSObject implements UAAction { - static alloc(): UAEnableFeatureAction; // inherited from NSObject +declare class UAInAppMessageCustomDisplayContent extends UAInAppMessageDisplayContent { + static alloc(): UAInAppMessageCustomDisplayContent; // inherited from NSObject - static new(): UAEnableFeatureAction; // inherited from NSObject + static displayContentWithValue(value: NSDictionary): UAInAppMessageCustomDisplayContent; - static readonly backgroundLocationActionValue: string; + static new(): UAInAppMessageCustomDisplayContent; // inherited from NSObject - static readonly locationActionValue: string; + readonly value: NSDictionary; +} - static readonly name: string; +declare class UAInAppMessageDefaultDisplayCoordinator extends NSObject implements UAInAppMessageDisplayCoordinator { + static alloc(): UAInAppMessageDefaultDisplayCoordinator; // inherited from NSObject - static readonly resultCompletionHandlerMetadata: string; + static coordinator(): UAInAppMessageDefaultDisplayCoordinator; - static readonly shortName: string; + static new(): UAInAppMessageDefaultDisplayCoordinator; // inherited from NSObject - static readonly userNotificationsActionValue: string; + displayInterval: number; readonly debugDescription: string; // inherited from NSObjectProtocol @@ -2724,17 +2059,19 @@ declare class UAEnableFeatureAction extends NSObject implements UAAction { readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly isReady: boolean; // inherited from UAInAppMessageDisplayCoordinator + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly; // inherited from NSObjectProtocol - acceptsArguments(_arguments: UAActionArguments): boolean; - class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; + didBeginDisplayingMessage(message: UAInAppMessage): void; + + didFinishDisplayingMessage(message: UAInAppMessage): void; isEqual(object: any): boolean; @@ -2748,21 +2085,17 @@ declare class UAEnableFeatureAction extends NSObject implements UAAction { performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; } -declare class UAEnableFeatureActionPredicate extends NSObject implements UAActionPredicateProtocol { - static alloc(): UAEnableFeatureActionPredicate; // inherited from NSObject +declare class UAInAppMessageDefaultPrepareAssetsDelegate extends NSObject implements UAInAppMessagePrepareAssetsDelegate { + static alloc(): UAInAppMessageDefaultPrepareAssetsDelegate; // inherited from NSObject - static new(): UAEnableFeatureActionPredicate; // inherited from NSObject + static new(): UAInAppMessageDefaultPrepareAssetsDelegate; // inherited from NSObject readonly debugDescription: string; // inherited from NSObjectProtocol @@ -2776,8 +2109,6 @@ declare class UAEnableFeatureActionPredicate extends NSObject implements UAActio readonly; // inherited from NSObjectProtocol - applyActionArguments(args: UAActionArguments): boolean; - class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; @@ -2788,6 +2119,10 @@ declare class UAEnableFeatureActionPredicate extends NSObject implements UAActio isMemberOfClass(aClass: typeof NSObject): boolean; + onPrepareAssetsCompletionHandler(message: UAInAppMessage, assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; + + onScheduleAssetsCompletionHandler(message: UAInAppMessage, assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; + performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; @@ -2801,261 +2136,185 @@ declare class UAEnableFeatureActionPredicate extends NSObject implements UAActio self(): this; } -interface UAEvent extends NSObjectProtocol { - data: NSDictionary; - - eventType: string; - - priority: UAEventPriority; +declare var UAInAppMessageDismissButtonColorKey: string; - isValid?(): boolean; -} -declare var UAEvent: { - prototype: UAEvent; -}; +declare var UAInAppMessageDisplayBehaviorDefault: string; -declare class UAEventAPIClient extends NSObject implements UAEventAPIClientProtocol { - static alloc(): UAEventAPIClient; // inherited from NSObject +declare var UAInAppMessageDisplayBehaviorImmediate: string; - static new(): UAEventAPIClient; // inherited from NSObject +declare class UAInAppMessageDisplayContent extends NSObject { + static alloc(): UAInAppMessageDisplayContent; // inherited from NSObject - constructor(o: { config: UARuntimeConfig }); + static new(): UAInAppMessageDisplayContent; // inherited from NSObject - constructor(o: { config: UARuntimeConfig; session: UARequestSession }); + readonly displayType: UAInAppMessageDisplayType; - initWithConfig(config: UARuntimeConfig): this; + toJSON(): NSDictionary; +} - initWithConfigSession(config: UARuntimeConfig, session: UARequestSession): this; +interface UAInAppMessageDisplayCoordinator extends NSObjectProtocol { + isReady: boolean; - uploadEventsHeadersCompletionHandler(events: NSArray | NSObject[], headers: NSDictionary, completionHandler: (p1: UAEventAPIResponse, p2: NSError) => void): UADisposable; -} + didBeginDisplayingMessage?(message: UAInAppMessage): void; -interface UAEventAPIClientProtocol { - uploadEventsHeadersCompletionHandler(events: NSArray | NSObject[], headers: NSDictionary, completionHandler: (p1: UAEventAPIResponse, p2: NSError) => void): UADisposable; + didFinishDisplayingMessage?(message: UAInAppMessage): void; } -declare var UAEventAPIClientProtocol: { - prototype: UAEventAPIClientProtocol; +declare var UAInAppMessageDisplayCoordinator: { + prototype: UAInAppMessageDisplayCoordinator; }; -declare class UAEventAPIResponse extends UAHTTPResponse { - static alloc(): UAEventAPIResponse; // inherited from NSObject +declare var UAInAppMessageDisplayCoordinatorIsReadyKey: string; - static new(): UAEventAPIResponse; // inherited from NSObject +declare const enum UAInAppMessageDisplayType { + Banner = 0, - readonly maxBatchSize: number; + FullScreen = 1, - readonly maxTotalDBSize: number; + Modal = 2, - readonly minBatchInterval: number; + HTML = 3, - constructor(o: { status: number; maxTotalDBSize: number; maxBatchSize: number; minBatchInterval: number }); + Custom = 4, - initWithStatusMaxTotalDBSizeMaxBatchSizeMinBatchInterval(status: number, maxTotalDBSize: number, maxBatchSize: number, minBatchInterval: number): this; + AirshipLayout = 5, } -declare class UAEventData extends NSManagedObject { - static alloc(): UAEventData; // inherited from NSObject +declare var UAInAppMessageDurationKey: string; - static new(): UAEventData; // inherited from NSObject +declare var UAInAppMessageFooterKey: string; - bytes: number; +declare class UAInAppMessageFullScreenAdapter extends NSObject implements UAInAppMessageAdapterProtocol { + static adapterForMessage(message: UAInAppMessage): UAInAppMessageFullScreenAdapter; - data: NSData; + static alloc(): UAInAppMessageFullScreenAdapter; // inherited from NSObject - identifier: string; + static new(): UAInAppMessageFullScreenAdapter; // inherited from NSObject - sessionID: string; + style: UAInAppMessageFullScreenStyle; - storeDate: Date; + readonly debugDescription: string; // inherited from NSObjectProtocol - time: string; + readonly description: string; // inherited from NSObjectProtocol - type: string; -} + readonly hash: number; // inherited from NSObjectProtocol -declare class UAEventManager extends NSObject implements UAEventManagerProtocol { - static alloc(): UAEventManager; // inherited from NSObject + readonly isProxy: boolean; // inherited from NSObjectProtocol - static new(): UAEventManager; // inherited from NSObject + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - delegate: UAEventManagerDelegate; // inherited from UAEventManagerProtocol + readonly; // inherited from NSObjectProtocol - uploadsEnabled: boolean; // inherited from UAEventManagerProtocol + class(): typeof NSObject; - constructor(o: { config: UARuntimeConfig; dataStore: UAPreferenceDataStore; channel: UAChannelProtocol }); + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - constructor(o: { config: UARuntimeConfig; dataStore: UAPreferenceDataStore; channel: UAChannelProtocol; eventStore: UAEventStoreProtocol; client: UAEventAPIClientProtocol; notificationCenter: NSNotificationCenter; appStateTracker: UAAppStateTracker; taskManager: TaskManagerProtocol; delayProvider: (p1: number) => UADelayProtocol }); + display(completionHandler: (p1: UAInAppMessageResolution) => void): void; - addEventIDEventDateSessionID(event: UAEvent, eventID: string, eventDate: Date, sessionID: string): void; + isEqual(object: any): boolean; - deleteAllEvents(): void; + isKindOfClass(aClass: typeof NSObject): boolean; - initWithConfigDataStoreChannel(config: UARuntimeConfig, dataStore: UAPreferenceDataStore, channel: UAChannelProtocol): this; + isMemberOfClass(aClass: typeof NSObject): boolean; - initWithConfigDataStoreChannelEventStoreClientNotificationCenterAppStateTrackerTaskManagerDelayProvider(config: UARuntimeConfig, dataStore: UAPreferenceDataStore, channel: UAChannelProtocol, eventStore: UAEventStoreProtocol, client: UAEventAPIClientProtocol, notificationCenter: NSNotificationCenter, appStateTracker: UAAppStateTracker, taskManager: TaskManagerProtocol, delayProvider: (p1: number) => UADelayProtocol): this; + isReadyToDisplay(): boolean; - scheduleUpload(): void; -} + performSelector(aSelector: string): any; -interface UAEventManagerDelegate extends NSObjectProtocol { - analyticsHeadersWithCompletionHandler(completionHandler: (p1: NSDictionary) => void): void; -} -declare var UAEventManagerDelegate: { - prototype: UAEventManagerDelegate; -}; + performSelectorWithObject(aSelector: string, object: any): any; -interface UAEventManagerProtocol { - delegate: UAEventManagerDelegate; + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - uploadsEnabled: boolean; + prepareWithAssetsCompletionHandler(assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; - addEventIDEventDateSessionID(event: UAEvent, eventID: string, eventDate: Date, sessionID: string): void; + respondsToSelector(aSelector: string): boolean; - deleteAllEvents(): void; + retainCount(): number; - scheduleUpload(): void; + self(): this; } -declare var UAEventManagerProtocol: { - prototype: UAEventManagerProtocol; -}; -declare const enum UAEventPriority { - Low = 0, +declare const enum UAInAppMessageFullScreenContentLayoutType { + HeaderMediaBody = 0, - Normal = 1, + MediaHeaderBody = 1, - High = 2, + HeaderBodyMedia = 2, } -declare class UAEventStore extends NSObject implements UAEventStoreProtocol { - static alloc(): UAEventStore; // inherited from NSObject - - static new(): UAEventStore; // inherited from NSObject - - constructor(o: { config: UARuntimeConfig }); - - deleteAllEvents(): void; - - deleteEventsWithIDs(eventIDs: NSArray | string[]): void; +declare class UAInAppMessageFullScreenDisplayContent extends UAInAppMessageDisplayContent { + static alloc(): UAInAppMessageFullScreenDisplayContent; // inherited from NSObject - fetchEventsWithLimitCompletionHandler(limit: number, completionHandler: (p1: NSArray) => void): void; + static displayContentWithBuilderBlock(builderBlock: (p1: UAInAppMessageFullScreenDisplayContentBuilder) => void): UAInAppMessageFullScreenDisplayContent; - initWithConfig(config: UARuntimeConfig): this; + static new(): UAInAppMessageFullScreenDisplayContent; // inherited from NSObject - saveEventIDEventDateSessionID(event: UAEvent, eventID: string, eventDate: Date, sessionID: string): void; + readonly backgroundColor: UIColor; - trimEventsToStoreSize(maxSize: number): void; -} + readonly body: UAInAppMessageTextInfo; -interface UAEventStoreProtocol { - deleteAllEvents(): void; + readonly buttonLayout: UAInAppMessageButtonLayoutType; - deleteEventsWithIDs(eventIDs: NSArray | string[]): void; + readonly buttons: NSArray; - fetchEventsWithLimitCompletionHandler(limit: number, completionHandler: (p1: NSArray) => void): void; + readonly contentLayout: UAInAppMessageFullScreenContentLayoutType; - saveEventIDEventDateSessionID(event: UAEvent, eventID: string, eventDate: Date, sessionID: string): void; + readonly dismissButtonColor: UIColor; - trimEventsToStoreSize(maxSize: number): void; -} -declare var UAEventStoreProtocol: { - prototype: UAEventStoreProtocol; -}; + readonly footer: UAInAppMessageButtonInfo; -declare class UAExtendedActionsResources extends NSObject { - static alloc(): UAExtendedActionsResources; // inherited from NSObject + readonly heading: UAInAppMessageTextInfo; - static bundle(): NSBundle; + readonly media: UAInAppMessageMediaInfo; - static new(): UAExtendedActionsResources; // inherited from NSObject + extend(builderBlock: (p1: UAInAppMessageFullScreenDisplayContentBuilder) => void): UAInAppMessageFullScreenDisplayContent; } -declare class UAExtendedActionsSDKModule extends NSObject implements UASDKModule { - static alloc(): UAExtendedActionsSDKModule; // inherited from NSObject - - static loadWithDependencies(dependencies: NSDictionary): UASDKModule; - - static new(): UAExtendedActionsSDKModule; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - actionsPlist(): string; - - class(): typeof NSObject; - - components(): NSArray; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; +declare class UAInAppMessageFullScreenDisplayContentBuilder extends NSObject { + static alloc(): UAInAppMessageFullScreenDisplayContentBuilder; // inherited from NSObject - retainCount(): number; + static new(): UAInAppMessageFullScreenDisplayContentBuilder; // inherited from NSObject - self(): this; -} + backgroundColor: UIColor; -declare const enum UAFeatures { - InAppAutomation = 1, + body: UAInAppMessageTextInfo; - MessageCenter = 2, + buttonLayout: UAInAppMessageButtonLayoutType; - Push = 4, + buttons: NSArray; - Chat = 8, + contentLayout: UAInAppMessageFullScreenContentLayoutType; - Analytics = 16, + dismissButtonColor: UIColor; - TagsAndAttributes = 32, + footer: UAInAppMessageButtonInfo; - Contacts = 64, + heading: UAInAppMessageTextInfo; - Location = 128, + media: UAInAppMessageMediaInfo; - All = 255, + isValid(): boolean; } -declare var UAFeaturesNone: UAFeatures; +declare var UAInAppMessageFullScreenMaxButtons: number; -declare class UAFetchDeviceInfoAction extends NSObject implements UAAction { - static alloc(): UAFetchDeviceInfoAction; // inherited from NSObject +declare class UAInAppMessageFullScreenStyle extends NSObject implements UAInAppMessageStyleProtocol { + static alloc(): UAInAppMessageFullScreenStyle; // inherited from NSObject - static new(): UAFetchDeviceInfoAction; // inherited from NSObject + static new(): UAInAppMessageFullScreenStyle; // inherited from NSObject - static readonly channelID: string; + static style(): UAInAppMessageFullScreenStyle; - static readonly locationEnabled: string; + static styleWithContentsOfFile(path: string): UAInAppMessageFullScreenStyle; - static readonly name: string; + bodyStyle: UAInAppMessageTextStyle; - static readonly namedUser: string; + buttonStyle: UAInAppMessageButtonStyle; - static readonly pushOptIn: string; + dismissIconResource: string; - static readonly shortName: string; + headerStyle: UAInAppMessageTextStyle; - static readonly tags: string; + mediaStyle: UAInAppMessageMediaStyle; readonly debugDescription: string; // inherited from NSObjectProtocol @@ -3069,18 +2328,10 @@ declare class UAFetchDeviceInfoAction extends NSObject implements UAAction { readonly; // inherited from NSObjectProtocol - constructor(o: { channel: () => UAChannelProtocol; contact: () => UAContactProtocol; push: () => UAPushProtocol; location: () => UALocationProvider }); - - acceptsArguments(_arguments: UAActionArguments): boolean; - class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; - - initWithChannelContactPushLocation(channel: () => UAChannelProtocol, contact: () => UAContactProtocol, push: () => UAPushProtocol, location: () => UALocationProvider): this; - isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; @@ -3093,21 +2344,21 @@ declare class UAFetchDeviceInfoAction extends NSObject implements UAAction { performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; } -declare class UAFetchDeviceInfoActionPredicate extends NSObject implements UAActionPredicateProtocol { - static alloc(): UAFetchDeviceInfoActionPredicate; // inherited from NSObject +declare class UAInAppMessageHTMLAdapter extends NSObject implements UAInAppMessageAdapterProtocol { + static adapterForMessage(message: UAInAppMessage): UAInAppMessageHTMLAdapter; + + static alloc(): UAInAppMessageHTMLAdapter; // inherited from NSObject + + static new(): UAInAppMessageHTMLAdapter; // inherited from NSObject - static new(): UAFetchDeviceInfoActionPredicate; // inherited from NSObject + style: UAInAppMessageHTMLStyle; readonly debugDescription: string; // inherited from NSObjectProtocol @@ -3121,24 +2372,28 @@ declare class UAFetchDeviceInfoActionPredicate extends NSObject implements UAAct readonly; // inherited from NSObjectProtocol - applyActionArguments(args: UAActionArguments): boolean; - class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; + display(completionHandler: (p1: UAInAppMessageResolution) => void): void; + isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; + isReadyToDisplay(): boolean; + performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + prepareWithAssetsCompletionHandler(assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; + respondsToSelector(aSelector: string): boolean; retainCount(): number; @@ -3146,99 +2401,90 @@ declare class UAFetchDeviceInfoActionPredicate extends NSObject implements UAAct self(): this; } -declare var UAFullScreenBodyStyleKey: string; - -declare var UAFullScreenButtonStyleKey: string; - -declare var UAFullScreenDismissIconResourceKey: string; +declare var UAInAppMessageHTMLAllowsFullScreenKey: string; -declare var UAFullScreenHeaderStyleKey: string; +declare var UAInAppMessageHTMLAspectLockKey: string; -declare var UAFullScreenMediaStyleKey: string; +declare class UAInAppMessageHTMLDisplayContent extends UAInAppMessageDisplayContent { + static alloc(): UAInAppMessageHTMLDisplayContent; // inherited from NSObject -declare var UAFullScreenStyleFileName: string; + static displayContentWithBuilderBlock(builderBlock: (p1: UAInAppMessageHTMLDisplayContentBuilder) => void): UAInAppMessageHTMLDisplayContent; -declare var UAFullScreenTextStyleKey: string; + static new(): UAInAppMessageHTMLDisplayContent; // inherited from NSObject -declare var UAHTMLAdditionalPaddingKey: string; + readonly allowFullScreenDisplay: boolean; -declare var UAHTMLDismissIconResourceKey: string; + readonly aspectLock: boolean; -declare var UAHTMLHideDismissIconKey: string; + readonly backgroundColor: UIColor; -declare var UAHTMLMaxHeightKey: string; + readonly borderRadiusPoints: number; -declare var UAHTMLMaxWidthKey: string; + readonly dismissButtonColor: UIColor; -declare var UAHTMLStyleFileName: string; + readonly height: number; -declare class UAHTTPResponse extends NSObject { - static alloc(): UAHTTPResponse; // inherited from NSObject + readonly requireConnectivity: boolean; - static new(): UAHTTPResponse; // inherited from NSObject + readonly url: string; - readonly isClientError: boolean; + readonly width: number; - readonly isServerError: boolean; + extend(builderBlock: (p1: UAInAppMessageHTMLDisplayContentBuilder) => void): UAInAppMessageHTMLDisplayContent; +} - readonly isSuccess: boolean; +declare class UAInAppMessageHTMLDisplayContentBuilder extends NSObject { + static alloc(): UAInAppMessageHTMLDisplayContentBuilder; // inherited from NSObject - readonly status: number; + static new(): UAInAppMessageHTMLDisplayContentBuilder; // inherited from NSObject - constructor(o: { status: number }); + allowFullScreenDisplay: boolean; - initWithStatus(status: number): this; -} + aspectLock: boolean; -declare class UAIOSChannelSettings extends NSObject implements NSCopying { - static alloc(): UAIOSChannelSettings; // inherited from NSObject + backgroundColor: UIColor; - static new(): UAIOSChannelSettings; // inherited from NSObject + borderRadiusPoints: number; - badgeNumber: number; + dismissButtonColor: UIColor; - quietTime: UAQuietTime; + height: number; - quietTimeTimeZone: string; + requiresConnectivity: boolean; - scheduledSummary: number; + url: string; - timeSensitive: number; + width: number; - copyWithZone(zone: interop.Pointer | interop.Reference): any; + isValid(): boolean; } -declare class UAIdentityHints extends NSObject implements NSCopying { - static alloc(): UAIdentityHints; // inherited from NSObject +declare var UAInAppMessageHTMLHeightKey: string; - static new(): UAIdentityHints; // inherited from NSObject +declare var UAInAppMessageHTMLRequireConnectivityKey: string; - accengageDeviceID: string; +declare class UAInAppMessageHTMLStyle extends NSObject implements UAInAppMessageStyleProtocol { + static alloc(): UAInAppMessageHTMLStyle; // inherited from NSObject - userID: string; + static new(): UAInAppMessageHTMLStyle; // inherited from NSObject - copyWithZone(zone: interop.Pointer | interop.Reference): any; -} + static style(): UAInAppMessageHTMLStyle; -interface UAImageProvider { - getWithUrl(url: NSURL): UAirshipImageData; -} -declare var UAImageProvider: { - prototype: UAImageProvider; -}; + static styleWithContentsOfFile(path: string): UAInAppMessageHTMLStyle; -declare class UAInAppAutomation extends NSObject implements UAComponent { - static alloc(): UAInAppAutomation; // inherited from NSObject + additionalPadding: UAPadding; - static new(): UAInAppAutomation; // inherited from NSObject + aspectRatio: number; - readonly inAppMessageManager: UAInAppMessageManager; + dismissIconResource: string; - paused: boolean; + extendFullScreenLargeDevice: boolean; - static readonly shared: UAInAppAutomation; + hideDismissIcon: boolean; - componentEnabled: boolean; // inherited from UAComponent + maxHeight: number; + + maxWidth: number; readonly debugDescription: string; // inherited from NSObjectProtocol @@ -3252,42 +2498,10 @@ declare class UAInAppAutomation extends NSObject implements UAComponent { readonly; // inherited from NSObjectProtocol - airshipReady(): void; - - applyRemoteConfig(config: any): void; - - cancelActionSchedulesWithGroupCompletionHandler(group: string, completionHandler: (p1: boolean) => void): void; - - cancelMessageSchedulesWithGroupCompletionHandler(group: string, completionHandler: (p1: boolean) => void): void; - - cancelScheduleWithIDCompletionHandler(scheduleID: string, completionHandler: (p1: boolean) => void): void; - - cancelSchedulesWithGroupCompletionHandler(group: string, completionHandler: (p1: boolean) => void): void; - - checkAudienceCompletionHandler(audience: UAScheduleAudience, completionHandler: (p1: boolean, p2: NSError) => void): void; - class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; - deepLink(deepLink: NSURL): boolean; - - editScheduleWithIDEditsCompletionHandler(identifier: string, edits: UAScheduleEdits, completionHandler: (p1: boolean) => void): void; - - getActionScheduleWithIDCompletionHandler(identifier: string, completionHandler: (p1: UAActionSchedule) => void): void; - - getActionSchedules(completionHandler: (p1: NSArray) => void): void; - - getActionSchedulesWithGroupCompletionHandler(group: string, completionHandler: (p1: NSArray) => void): void; - - getMessageScheduleWithIDCompletionHandler(identifier: string, completionHandler: (p1: UAInAppMessageSchedule) => void): void; - - getMessageSchedules(completionHandler: (p1: NSArray) => void): void; - - getMessageSchedulesWithGroupCompletionHandler(group: string, completionHandler: (p1: NSArray) => void): void; - - getSchedules(completionHandler: (p1: NSArray) => void): void; - isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; @@ -3304,80 +2518,121 @@ declare class UAInAppAutomation extends NSObject implements UAComponent { retainCount(): number; - scheduleCompletionHandler(schedule: UASchedule, completionHandler: (p1: boolean) => void): void; - - scheduleMultipleCompletionHandler(schedules: NSArray | UASchedule[], completionHandler: (p1: boolean) => void): void; - self(): this; } -declare class UAInAppMessage extends NSObject { - static alloc(): UAInAppMessage; // inherited from NSObject +declare var UAInAppMessageHTMLWidthKey: string; - static messageWithBuilderBlock(builderBlock: (p1: UAInAppMessageBuilder) => void): UAInAppMessage; +declare var UAInAppMessageHeadingKey: string; - static new(): UAInAppMessage; // inherited from NSObject +declare class UAInAppMessageImmediateDisplayCoordinator extends NSObject implements UAInAppMessageDisplayCoordinator { + static alloc(): UAInAppMessageImmediateDisplayCoordinator; // inherited from NSObject - readonly actions: NSDictionary; + static coordinator(): UAInAppMessageImmediateDisplayCoordinator; - readonly displayBehavior: string; + static new(): UAInAppMessageImmediateDisplayCoordinator; // inherited from NSObject - readonly displayContent: UAInAppMessageDisplayContent; + readonly debugDescription: string; // inherited from NSObjectProtocol - readonly displayType: UAInAppMessageDisplayType; + readonly description: string; // inherited from NSObjectProtocol - readonly extras: NSDictionary; + readonly hash: number; // inherited from NSObjectProtocol - readonly isReportingEnabled: boolean; + readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly name: string; + readonly isReady: boolean; // inherited from UAInAppMessageDisplayCoordinator - extend(builderBlock: (p1: UAInAppMessageBuilder) => void): UAInAppMessage; -} + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol -interface UAInAppMessageAdapterProtocol extends NSObjectProtocol { - display?(completionHandler: (p1: UAInAppMessageResolution) => void): void; + readonly; // inherited from NSObjectProtocol - isReadyToDisplay(): boolean; + class(): typeof NSObject; - prepareWithAssetsCompletionHandler(assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; + conformsToProtocol(aProtocol: any /* Protocol */): boolean; + + didBeginDisplayingMessage(message: UAInAppMessage): void; + + didFinishDisplayingMessage(message: UAInAppMessage): void; + + isEqual(object: any): boolean; + + isKindOfClass(aClass: typeof NSObject): boolean; + + isMemberOfClass(aClass: typeof NSObject): boolean; + + performSelector(aSelector: string): any; + + performSelectorWithObject(aSelector: string, object: any): any; + + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + + respondsToSelector(aSelector: string): boolean; + + retainCount(): number; + + self(): this; } -declare var UAInAppMessageAdapterProtocol: { - prototype: UAInAppMessageAdapterProtocol; - adapterForMessage(message: UAInAppMessage): UAInAppMessageAdapterProtocol; -}; +declare class UAInAppMessageManager extends NSObject { + static alloc(): UAInAppMessageManager; // inherited from NSObject -declare class UAInAppMessageAssetManager extends NSObject { - static alloc(): UAInAppMessageAssetManager; // inherited from NSObject + static new(): UAInAppMessageManager; // inherited from NSObject - static new(): UAInAppMessageAssetManager; // inherited from NSObject + readonly assetManager: UAInAppMessageAssetManager; - cachePolicyDelegate: UAInAppMessageCachePolicyDelegate; + delegate: UAInAppMessagingDelegate; - prepareAssetsDelegate: UAInAppMessagePrepareAssetsDelegate; + displayInterval: number; + + notifyDisplayConditionsChanged(): void; + + setFactoryBlockForDisplayType(factory: (p1: UAInAppMessage) => UAInAppMessageAdapterProtocol, displayType: UAInAppMessageDisplayType): void; } -declare class UAInAppMessageAssets extends NSObject { - static alloc(): UAInAppMessageAssets; // inherited from NSObject +declare class UAInAppMessageMediaInfo extends NSObject { + static alloc(): UAInAppMessageMediaInfo; // inherited from NSObject - static new(): UAInAppMessageAssets; // inherited from NSObject + static mediaInfoWithURLContentDescriptionType(url: string, contentDescription: string, type: UAInAppMessageMediaInfoType): UAInAppMessageMediaInfo; - getCacheURL(assetURL: NSURL): NSURL; + static new(): UAInAppMessageMediaInfo; // inherited from NSObject - isCached(assetURL: NSURL): boolean; + readonly contentDescription: string; + + readonly type: UAInAppMessageMediaInfoType; + + readonly url: string; } -declare var UAInAppMessageBackgroundColorKey: string; +declare const enum UAInAppMessageMediaInfoType { + Image = 0, -declare class UAInAppMessageBannerAdapter extends NSObject implements UAInAppMessageAdapterProtocol { - static adapterForMessage(message: UAInAppMessage): UAInAppMessageBannerAdapter; + Video = 1, - static alloc(): UAInAppMessageBannerAdapter; // inherited from NSObject + YouTube = 2, +} - static new(): UAInAppMessageBannerAdapter; // inherited from NSObject +declare var UAInAppMessageMediaKey: string; - style: UAInAppMessageBannerStyle; +declare class UAInAppMessageMediaStyle extends NSObject { + static alloc(): UAInAppMessageMediaStyle; // inherited from NSObject + + static new(): UAInAppMessageMediaStyle; // inherited from NSObject + + static styleWithAdditionalPadding(additionalPadding: UAPadding): UAInAppMessageMediaStyle; + + static styleWithDictionary(mediaStyleDict: NSDictionary): UAInAppMessageMediaStyle; + + additionalPadding: UAPadding; +} + +declare class UAInAppMessageModalAdapter extends NSObject implements UAInAppMessageAdapterProtocol { + static adapterForMessage(message: UAInAppMessage): UAInAppMessageModalAdapter; + + static alloc(): UAInAppMessageModalAdapter; // inherited from NSObject + + static new(): UAInAppMessageModalAdapter; // inherited from NSObject + + style: UAInAppMessageModalStyle; readonly debugDescription: string; // inherited from NSObjectProtocol @@ -3420,20 +2675,24 @@ declare class UAInAppMessageBannerAdapter extends NSObject implements UAInAppMes self(): this; } -declare const enum UAInAppMessageBannerContentLayoutType { - MediaLeft = 0, +declare var UAInAppMessageModalAllowsFullScreenKey: string; - MediaRight = 1, +declare const enum UAInAppMessageModalContentLayoutType { + HeaderMediaBody = 0, + + MediaHeaderBody = 1, + + HeaderBodyMedia = 2, } -declare class UAInAppMessageBannerDisplayContent extends UAInAppMessageDisplayContent { - static alloc(): UAInAppMessageBannerDisplayContent; // inherited from NSObject +declare class UAInAppMessageModalDisplayContent extends UAInAppMessageDisplayContent { + static alloc(): UAInAppMessageModalDisplayContent; // inherited from NSObject - static displayContentWithBuilderBlock(builderBlock: (p1: UAInAppMessageBannerDisplayContentBuilder) => void): UAInAppMessageBannerDisplayContent; + static displayContentWithBuilderBlock(builderBlock: (p1: UAInAppMessageModalDisplayContentBuilder) => void): UAInAppMessageModalDisplayContent; - static new(): UAInAppMessageBannerDisplayContent; // inherited from NSObject + static new(): UAInAppMessageModalDisplayContent; // inherited from NSObject - readonly actions: NSDictionary; + readonly allowFullScreenDisplay: boolean; readonly backgroundColor: UIColor; @@ -3445,27 +2704,25 @@ declare class UAInAppMessageBannerDisplayContent extends UAInAppMessageDisplayCo readonly buttons: NSArray; - readonly contentLayout: UAInAppMessageBannerContentLayoutType; + readonly contentLayout: UAInAppMessageModalContentLayoutType; readonly dismissButtonColor: UIColor; - readonly durationSeconds: number; + readonly footer: UAInAppMessageButtonInfo; readonly heading: UAInAppMessageTextInfo; readonly media: UAInAppMessageMediaInfo; - readonly placement: UAInAppMessageBannerPlacementType; - - extend(builderBlock: (p1: UAInAppMessageBannerDisplayContentBuilder) => void): UAInAppMessageBannerDisplayContent; + extend(builderBlock: (p1: UAInAppMessageModalDisplayContentBuilder) => void): UAInAppMessageModalDisplayContent; } -declare class UAInAppMessageBannerDisplayContentBuilder extends NSObject { - static alloc(): UAInAppMessageBannerDisplayContentBuilder; // inherited from NSObject +declare class UAInAppMessageModalDisplayContentBuilder extends NSObject { + static alloc(): UAInAppMessageModalDisplayContentBuilder; // inherited from NSObject - static new(): UAInAppMessageBannerDisplayContentBuilder; // inherited from NSObject + static new(): UAInAppMessageModalDisplayContentBuilder; // inherited from NSObject - actions: NSDictionary; + allowFullScreenDisplay: boolean; backgroundColor: UIColor; @@ -3477,46 +2734,46 @@ declare class UAInAppMessageBannerDisplayContentBuilder extends NSObject { buttons: NSArray; - contentLayout: UAInAppMessageBannerContentLayoutType; + contentLayout: UAInAppMessageModalContentLayoutType; dismissButtonColor: UIColor; - durationSeconds: number; + footer: UAInAppMessageButtonInfo; heading: UAInAppMessageTextInfo; media: UAInAppMessageMediaInfo; - placement: UAInAppMessageBannerPlacementType; - isValid(): boolean; } -declare var UAInAppMessageBannerMaxButtons: number; - -declare const enum UAInAppMessageBannerPlacementType { - Top = 0, - - Bottom = 1, -} +declare var UAInAppMessageModalMaxButtons: number; -declare class UAInAppMessageBannerStyle extends NSObject implements UAInAppMessageStyleProtocol { - static alloc(): UAInAppMessageBannerStyle; // inherited from NSObject +declare class UAInAppMessageModalStyle extends NSObject implements UAInAppMessageStyleProtocol { + static alloc(): UAInAppMessageModalStyle; // inherited from NSObject - static new(): UAInAppMessageBannerStyle; // inherited from NSObject + static new(): UAInAppMessageModalStyle; // inherited from NSObject - static style(): UAInAppMessageBannerStyle; + static style(): UAInAppMessageModalStyle; - static styleWithContentsOfFile(path: string): UAInAppMessageBannerStyle; + static styleWithContentsOfFile(path: string): UAInAppMessageModalStyle; additionalPadding: UAPadding; + aspectRatio: number; + bodyStyle: UAInAppMessageTextStyle; buttonStyle: UAInAppMessageButtonStyle; + dismissIconResource: string; + + extendFullScreenLargeDevice: boolean; + headerStyle: UAInAppMessageTextStyle; + maxHeight: number; + maxWidth: number; mediaStyle: UAInAppMessageMediaStyle; @@ -3556,175 +2813,226 @@ declare class UAInAppMessageBannerStyle extends NSObject implements UAInAppMessa self(): this; } -declare var UAInAppMessageBodyKey: string; - -declare var UAInAppMessageBorderRadiusKey: string; - -declare class UAInAppMessageBuilder extends NSObject { - static alloc(): UAInAppMessageBuilder; // inherited from NSObject - - static new(): UAInAppMessageBuilder; // inherited from NSObject +declare var UAInAppMessageNameLimit: number; - actions: NSDictionary; +declare var UAInAppMessagePlacementKey: string; - displayBehavior: string; +interface UAInAppMessagePrepareAssetsDelegate extends NSObjectProtocol { + onPrepareAssetsCompletionHandler(message: UAInAppMessage, assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; - displayContent: UAInAppMessageDisplayContent; + onScheduleAssetsCompletionHandler(message: UAInAppMessage, assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; +} +declare var UAInAppMessagePrepareAssetsDelegate: { + prototype: UAInAppMessagePrepareAssetsDelegate; +}; - extras: NSDictionary; +declare const enum UAInAppMessagePrepareResult { + Success = 0, - isReportingEnabled: boolean; + Retry = 1, - name: string; + Cancel = 2, - isValid(): boolean; + Invalidate = 3, } -declare class UAInAppMessageButtonInfo extends NSObject { - static alloc(): UAInAppMessageButtonInfo; // inherited from NSObject - - static buttonInfoWithBuilderBlock(builderBlock: (p1: UAInAppMessageButtonInfoBuilder) => void): UAInAppMessageButtonInfo; +declare class UAInAppMessageResolution extends NSObject { + static alloc(): UAInAppMessageResolution; // inherited from NSObject - static new(): UAInAppMessageButtonInfo; // inherited from NSObject + static buttonClickResolutionWithButtonInfo(buttonInfo: UAInAppMessageButtonInfo): UAInAppMessageResolution; - readonly actions: NSDictionary; + static messageClickResolution(): UAInAppMessageResolution; - readonly backgroundColor: UIColor; + static new(): UAInAppMessageResolution; // inherited from NSObject - readonly behavior: UAInAppMessageButtonInfoBehaviorType; + static timedOutResolution(): UAInAppMessageResolution; - readonly borderColor: UIColor; + static userDismissedResolution(): UAInAppMessageResolution; - readonly borderRadiusPoints: number; + readonly buttonInfo: UAInAppMessageButtonInfo; - readonly identifier: string; + readonly type: UAInAppMessageResolutionType; +} - readonly label: UAInAppMessageTextInfo; +declare const enum UAInAppMessageResolutionType { + ButtonClick = 0, - extend(builderBlock: (p1: UAInAppMessageButtonInfoBuilder) => void): UAInAppMessageButtonInfo; -} + MessageClick = 1, -declare const enum UAInAppMessageButtonInfoBehaviorType { - Dismiss = 0, + UserDismissed = 2, - Cancel = 1, + TimedOut = 3, } -declare class UAInAppMessageButtonInfoBuilder extends NSObject { - static alloc(): UAInAppMessageButtonInfoBuilder; // inherited from NSObject +interface UAInAppMessageSceneDelegate extends NSObjectProtocol { + sceneForMessageDefaultScene?(message: UAInAppMessage, defaultScene: UIWindowScene): UIWindowScene; +} +declare var UAInAppMessageSceneDelegate: { + prototype: UAInAppMessageSceneDelegate; +}; - static new(): UAInAppMessageButtonInfoBuilder; // inherited from NSObject +declare class UAInAppMessageSceneManager extends NSObject { + static alloc(): UAInAppMessageSceneManager; // inherited from NSObject - actions: NSDictionary; + static new(): UAInAppMessageSceneManager; // inherited from NSObject - backgroundColor: UIColor; + delegate: UAInAppMessageSceneDelegate; - behavior: UAInAppMessageButtonInfoBehaviorType; + static readonly shared: UAInAppMessageSceneManager; - borderColor: UIColor; + sceneForMessage(message: UAInAppMessage): UIWindowScene; +} - borderRadiusPoints: number; +declare class UAInAppMessageSchedule extends UASchedule { + static alloc(): UAInAppMessageSchedule; // inherited from NSObject - identifier: string; + static new(): UAInAppMessageSchedule; // inherited from NSObject - label: UAInAppMessageTextInfo; + static scheduleWithMessageBuilderBlock(message: UAInAppMessage, builderBlock: (p1: UAScheduleBuilder) => void): UAInAppMessageSchedule; - isValid(): boolean; + readonly message: UAInAppMessage; } -declare var UAInAppMessageButtonInfoIDLimit: number; +interface UAInAppMessageStyleProtocol extends NSObjectProtocol {} +declare var UAInAppMessageStyleProtocol: { + prototype: UAInAppMessageStyleProtocol; -declare var UAInAppMessageButtonLayoutJoinedValue: string; + style(): UAInAppMessageStyleProtocol; -declare var UAInAppMessageButtonLayoutKey: string; + styleWithContentsOfFile(path: string): UAInAppMessageStyleProtocol; +}; -declare var UAInAppMessageButtonLayoutSeparateValue: string; +declare class UAInAppMessageTextInfo extends NSObject { + static alloc(): UAInAppMessageTextInfo; // inherited from NSObject -declare var UAInAppMessageButtonLayoutStackedValue: string; + static new(): UAInAppMessageTextInfo; // inherited from NSObject -declare const enum UAInAppMessageButtonLayoutType { - Stacked = 0, + static textInfoWithBuilderBlock(builderBlock: (p1: UAInAppMessageTextInfoBuilder) => void): UAInAppMessageTextInfo; - Separate = 1, + readonly alignment: UAInAppMessageTextInfoAlignmentType; - Joined = 2, + readonly color: UIColor; + + readonly fontFamilies: NSArray; + + readonly sizePoints: number; + + readonly style: UAInAppMessageTextInfoStyleType; + + readonly text: string; + + extend(builderBlock: (p1: UAInAppMessageTextInfoBuilder) => void): UAInAppMessageTextInfo; } -declare class UAInAppMessageButtonStyle extends NSObject { - static alloc(): UAInAppMessageButtonStyle; // inherited from NSObject +declare const enum UAInAppMessageTextInfoAlignmentType { + None = 0, - static new(): UAInAppMessageButtonStyle; // inherited from NSObject + Left = 1, - static styleWithAdditionalPaddingButtonTextStyleButtonHeightStackedButtonSpacingSeparatedButtonSpacingBorderWidth(additionalPadding: UAPadding, textStyle: UAInAppMessageTextStyle, buttonHeight: number, stackedButtonSpacing: number, separatedButtonSpacing: number, borderWidth: number): UAInAppMessageButtonStyle; + Center = 2, - static styleWithDictionary(buttonStyle: NSDictionary): UAInAppMessageButtonStyle; + Right = 3, +} - additionalPadding: UAPadding; +declare class UAInAppMessageTextInfoBuilder extends NSObject { + static alloc(): UAInAppMessageTextInfoBuilder; // inherited from NSObject - borderWidth: number; + static new(): UAInAppMessageTextInfoBuilder; // inherited from NSObject - buttonHeight: number; + alignment: UAInAppMessageTextInfoAlignmentType; - buttonTextStyle: UAInAppMessageTextStyle; + color: UIColor; - separatedButtonSpacing: number; + fontFamilies: NSArray; - stackedButtonSpacing: number; + sizePoints: number; + + style: UAInAppMessageTextInfoStyleType; + + text: string; + + isValid(): boolean; } -declare var UAInAppMessageButtonsKey: string; +declare const enum UAInAppMessageTextInfoStyleType { + Normal = 0, -interface UAInAppMessageCachePolicyDelegate extends NSObjectProtocol { - shouldCacheOnSchedule(message: UAInAppMessage): boolean; + Bold = 1, - shouldPersistCacheAfterDisplay(message: UAInAppMessage): boolean; + Italic = 2, + + Underline = 4, } -declare var UAInAppMessageCachePolicyDelegate: { - prototype: UAInAppMessageCachePolicyDelegate; -}; -declare var UAInAppMessageContentLayoutKey: string; +declare class UAInAppMessageTextStyle extends NSObject { + static alloc(): UAInAppMessageTextStyle; // inherited from NSObject -declare class UAInAppMessageCustomDisplayContent extends UAInAppMessageDisplayContent { - static alloc(): UAInAppMessageCustomDisplayContent; // inherited from NSObject + static new(): UAInAppMessageTextStyle; // inherited from NSObject - static displayContentWithValue(value: NSDictionary): UAInAppMessageCustomDisplayContent; + static styleWithAdditionalPaddingLetterSpacingLineSpacing(additionalPadding: UAPadding, letterSpacing: number, lineSpacing: number): UAInAppMessageTextStyle; - static new(): UAInAppMessageCustomDisplayContent; // inherited from NSObject + static styleWithDictionary(textStyle: NSDictionary): UAInAppMessageTextStyle; - readonly value: NSDictionary; + additionalPadding: UAPadding; + + letterSpacing: number; + + lineSpacing: number; } -declare class UAInAppMessageDefaultDisplayCoordinator extends NSObject implements UAInAppMessageDisplayCoordinator { - static alloc(): UAInAppMessageDefaultDisplayCoordinator; // inherited from NSObject +declare var UAInAppMessageURLKey: string; - static coordinator(): UAInAppMessageDefaultDisplayCoordinator; +interface UAInAppMessagingDelegate extends NSObjectProtocol { + displayCoordinatorForMessage?(message: UAInAppMessage): UAInAppMessageDisplayCoordinator; - static new(): UAInAppMessageDefaultDisplayCoordinator; // inherited from NSObject + extendMessage?(message: UAInAppMessage): UAInAppMessage; - displayInterval: number; + isMessageReadyForDisplay?(message: UAInAppMessage): boolean; + + messageFinishedDisplayingScheduleIDResolution?(message: UAInAppMessage, scheduleID: string, resolution: UAInAppMessageResolution): void; + + messageWillBeDisplayedScheduleID?(message: UAInAppMessage, scheduleID: string): void; + + sceneForMessageDefaultScene?(message: UAInAppMessage, defaultScene: UIWindowScene): UIWindowScene; +} +declare var UAInAppMessagingDelegate: { + prototype: UAInAppMessagingDelegate; +}; + +declare class UAInstallAttributionEvent extends NSObject implements UAEvent { + static alloc(): UAInstallAttributionEvent; // inherited from NSObject + + static event(): UAInstallAttributionEvent; + + static eventWithAppPurchaseDateIAdImpressionDate(appPurchaseDate: Date, iAdImpressionDate: Date): UAInstallAttributionEvent; + + static new(): UAInstallAttributionEvent; // inherited from NSObject + + readonly data: NSDictionary; // inherited from UAEvent readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol + readonly eventType: string; // inherited from UAEvent + readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly isReady: boolean; // inherited from UAInAppMessageDisplayCoordinator + readonly priority: UAEventPriority; // inherited from UAEvent readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly; // inherited from NSObjectProtocol + constructor(o: { appPurchaseDate: Date; iAdImpressionDate: Date }); + class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; - didBeginDisplayingMessage(message: UAInAppMessage): void; - - didFinishDisplayingMessage(message: UAInAppMessage): void; + initWithAppPurchaseDateIAdImpressionDate(appPurchaseDate: Date, iAdImpressionDate: Date): this; isEqual(object: any): boolean; @@ -3732,6 +3040,8 @@ declare class UAInAppMessageDefaultDisplayCoordinator extends NSObject implement isMemberOfClass(aClass: typeof NSObject): boolean; + isValid(): boolean; + performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; @@ -3745,36 +3055,44 @@ declare class UAInAppMessageDefaultDisplayCoordinator extends NSObject implement self(): this; } -declare class UAInAppMessageDefaultPrepareAssetsDelegate extends NSObject implements UAInAppMessagePrepareAssetsDelegate { - static alloc(): UAInAppMessageDefaultPrepareAssetsDelegate; // inherited from NSObject +declare class UAInteractiveNotificationEvent extends NSObject implements UAEvent { + static alloc(): UAInteractiveNotificationEvent; // inherited from NSObject - static new(): UAInAppMessageDefaultPrepareAssetsDelegate; // inherited from NSObject + static new(): UAInteractiveNotificationEvent; // inherited from NSObject + + readonly data: NSDictionary; // inherited from UAEvent readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol + readonly eventType: string; // inherited from UAEvent + readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly priority: UAEventPriority; // inherited from UAEvent + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly; // inherited from NSObjectProtocol + constructor(o: { action: UNNotificationAction; category: string; notification: NSDictionary; responseText: string }); + class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; + initWithActionCategoryNotificationResponseText(action: UNNotificationAction, category: string, notification: NSDictionary, responseText: string): this; + isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; - onPrepareAssetsCompletionHandler(message: UAInAppMessage, assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; - - onScheduleAssetsCompletionHandler(message: UAInAppMessage, assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; + isValid(): boolean; performSelector(aSelector: string): any; @@ -3789,232 +3107,197 @@ declare class UAInAppMessageDefaultPrepareAssetsDelegate extends NSObject implem self(): this; } -declare var UAInAppMessageDismissButtonColorKey: string; - -declare var UAInAppMessageDisplayBehaviorDefault: string; +declare class UAJSONMatcher extends NSObject { + static alloc(): UAJSONMatcher; // inherited from NSObject -declare var UAInAppMessageDisplayBehaviorImmediate: string; + static new(): UAJSONMatcher; // inherited from NSObject -declare class UAInAppMessageDisplayContent extends NSObject { - static alloc(): UAInAppMessageDisplayContent; // inherited from NSObject + constructor(o: { JSON: any }); - static new(): UAInAppMessageDisplayContent; // inherited from NSObject + constructor(o: { valueMatcher: UAJSONValueMatcher }); - readonly displayType: UAInAppMessageDisplayType; + constructor(o: { valueMatcher: UAJSONValueMatcher; ignoreCase: boolean }); - toJSON(): NSDictionary; -} + constructor(o: { valueMatcher: UAJSONValueMatcher; key: string }); -interface UAInAppMessageDisplayCoordinator extends NSObjectProtocol { - isReady: boolean; + constructor(o: { valueMatcher: UAJSONValueMatcher; key: string; scope: NSArray | string[] }); - didBeginDisplayingMessage?(message: UAInAppMessage): void; + constructor(o: { valueMatcher: UAJSONValueMatcher; scope: NSArray | string[] }); - didFinishDisplayingMessage?(message: UAInAppMessage): void; -} -declare var UAInAppMessageDisplayCoordinator: { - prototype: UAInAppMessageDisplayCoordinator; -}; + constructor(o: { valueMatcher: UAJSONValueMatcher; scope: NSArray | string[]; ignoreCase: boolean }); -declare var UAInAppMessageDisplayCoordinatorIsReadyKey: string; + evaluateObject(value: any): boolean; -declare const enum UAInAppMessageDisplayType { - Banner = 0, + evaluateObjectIgnoreCase(value: any, ignoreCase: boolean): boolean; - FullScreen = 1, + initWithJSONError(json: any): this; - Modal = 2, + initWithValueMatcher(valueMatcher: UAJSONValueMatcher): this; - HTML = 3, + initWithValueMatcherIgnoreCase(valueMatcher: UAJSONValueMatcher, ignoreCase: boolean): this; - Custom = 4, + initWithValueMatcherKey(valueMatcher: UAJSONValueMatcher, key: string): this; - AirshipLayout = 5, -} + initWithValueMatcherKeyScope(valueMatcher: UAJSONValueMatcher, key: string, scope: NSArray | string[]): this; -declare var UAInAppMessageDurationKey: string; + initWithValueMatcherScope(valueMatcher: UAJSONValueMatcher, scope: NSArray | string[]): this; -declare var UAInAppMessageFooterKey: string; + initWithValueMatcherScopeIgnoreCase(valueMatcher: UAJSONValueMatcher, scope: NSArray | string[], ignoreCase: boolean): this; -declare class UAInAppMessageFullScreenAdapter extends NSObject implements UAInAppMessageAdapterProtocol { - static adapterForMessage(message: UAInAppMessage): UAInAppMessageFullScreenAdapter; + isEqualToJSONMatcher(matcher: UAJSONMatcher): boolean; - static alloc(): UAInAppMessageFullScreenAdapter; // inherited from NSObject + payload(): NSDictionary; +} - static new(): UAInAppMessageFullScreenAdapter; // inherited from NSObject +declare class UAJSONPredicate extends NSObject { + static alloc(): UAJSONPredicate; // inherited from NSObject - style: UAInAppMessageFullScreenStyle; + static andPredicateWithSubpredicates(subpredicates: NSArray | UAJSONPredicate[]): UAJSONPredicate; - readonly debugDescription: string; // inherited from NSObjectProtocol + static new(): UAJSONPredicate; // inherited from NSObject - readonly description: string; // inherited from NSObjectProtocol + static notPredicateWithSubpredicate(subpredicate: UAJSONPredicate): UAJSONPredicate; - readonly hash: number; // inherited from NSObjectProtocol + static orPredicateWithSubpredicates(subpredicates: NSArray | UAJSONPredicate[]): UAJSONPredicate; - readonly isProxy: boolean; // inherited from NSObjectProtocol + constructor(o: { JSON: any }); - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + constructor(o: { JSONMatcher: UAJSONMatcher }); - readonly; // inherited from NSObjectProtocol + evaluateObject(object: any): boolean; - class(): typeof NSObject; + initWithJSONError(json: any): this; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + initWithJSONMatcher(matcher: UAJSONMatcher): this; - display(completionHandler: (p1: UAInAppMessageResolution) => void): void; + payload(): NSDictionary; +} - isEqual(object: any): boolean; +declare class UAJSONUtils extends NSObject { + static alloc(): UAJSONUtils; // inherited from NSObject - isKindOfClass(aClass: typeof NSObject): boolean; + static dataWithObjectOptionsError(obj: any, options: NSJSONWritingOptions): NSData; - isMemberOfClass(aClass: typeof NSObject): boolean; + static new(): UAJSONUtils; // inherited from NSObject - isReadyToDisplay(): boolean; + static objectWithString(string: string): any; - performSelector(aSelector: string): any; + static objectWithStringOptionsError(string: string, options: NSJSONReadingOptions): any; - performSelectorWithObject(aSelector: string, object: any): any; + static stringWithObject(obj: any): string; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - prepareWithAssetsCompletionHandler(assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare const enum UAInAppMessageFullScreenContentLayoutType { - HeaderMediaBody = 0, - - MediaHeaderBody = 1, - - HeaderBodyMedia = 2, + static stringWithObjectOptionsError(obj: any, options: NSJSONWritingOptions): string; } -declare class UAInAppMessageFullScreenDisplayContent extends UAInAppMessageDisplayContent { - static alloc(): UAInAppMessageFullScreenDisplayContent; // inherited from NSObject - - static displayContentWithBuilderBlock(builderBlock: (p1: UAInAppMessageFullScreenDisplayContentBuilder) => void): UAInAppMessageFullScreenDisplayContent; - - static new(): UAInAppMessageFullScreenDisplayContent; // inherited from NSObject - - readonly backgroundColor: UIColor; - - readonly body: UAInAppMessageTextInfo; - - readonly buttonLayout: UAInAppMessageButtonLayoutType; - - readonly buttons: NSArray; - - readonly contentLayout: UAInAppMessageFullScreenContentLayoutType; - - readonly dismissButtonColor: UIColor; +declare class UAJSONValueMatcher extends NSObject { + static alloc(): UAJSONValueMatcher; // inherited from NSObject - readonly footer: UAInAppMessageButtonInfo; + static matcherWhereBooleanEquals(boolean: boolean): UAJSONValueMatcher; - readonly heading: UAInAppMessageTextInfo; + static matcherWhereNumberAtLeast(number: number): UAJSONValueMatcher; - readonly media: UAInAppMessageMediaInfo; + static matcherWhereNumberAtLeastAtMost(lowerNumber: number, higherNumber: number): UAJSONValueMatcher; - extend(builderBlock: (p1: UAInAppMessageFullScreenDisplayContentBuilder) => void): UAInAppMessageFullScreenDisplayContent; -} + static matcherWhereNumberAtMost(number: number): UAJSONValueMatcher; -declare class UAInAppMessageFullScreenDisplayContentBuilder extends NSObject { - static alloc(): UAInAppMessageFullScreenDisplayContentBuilder; // inherited from NSObject + static matcherWhereNumberEquals(number: number): UAJSONValueMatcher; - static new(): UAInAppMessageFullScreenDisplayContentBuilder; // inherited from NSObject + static matcherWhereStringEquals(string: string): UAJSONValueMatcher; - backgroundColor: UIColor; + static matcherWhereValueIsPresent(present: boolean): UAJSONValueMatcher; - body: UAInAppMessageTextInfo; + static matcherWithArrayContainsPredicate(predicate: UAJSONPredicate): UAJSONValueMatcher; - buttonLayout: UAInAppMessageButtonLayoutType; + static matcherWithArrayContainsPredicateAtIndex(predicate: UAJSONPredicate, index: number): UAJSONValueMatcher; - buttons: NSArray; + static matcherWithJSONError(json: any): UAJSONValueMatcher; - contentLayout: UAInAppMessageFullScreenContentLayoutType; + static matcherWithVersionConstraint(versionConstraint: string): UAJSONValueMatcher; - dismissButtonColor: UIColor; + static new(): UAJSONValueMatcher; // inherited from NSObject - footer: UAInAppMessageButtonInfo; + evaluateObject(value: any): boolean; - heading: UAInAppMessageTextInfo; + evaluateObjectIgnoreCase(value: any, ignoreCase: boolean): boolean; - media: UAInAppMessageMediaInfo; + payload(): NSDictionary; - isValid(): boolean; + valueIsEqualToValueIgnoreCase(valueOne: any, valueTwo: any, ignoreCase: boolean): boolean; } -declare var UAInAppMessageFullScreenMaxButtons: number; - -declare class UAInAppMessageFullScreenStyle extends NSObject implements UAInAppMessageStyleProtocol { - static alloc(): UAInAppMessageFullScreenStyle; // inherited from NSObject - - static new(): UAInAppMessageFullScreenStyle; // inherited from NSObject - - static style(): UAInAppMessageFullScreenStyle; - - static styleWithContentsOfFile(path: string): UAInAppMessageFullScreenStyle; - - bodyStyle: UAInAppMessageTextStyle; - - buttonStyle: UAInAppMessageButtonStyle; +declare class UAJSONValueTransformer extends NSValueTransformer { + static alloc(): UAJSONValueTransformer; // inherited from NSObject - dismissIconResource: string; + static new(): UAJSONValueTransformer; // inherited from NSObject +} - headerStyle: UAInAppMessageTextStyle; +declare class UAJavaScriptCommand extends NSObject { + static alloc(): UAJavaScriptCommand; // inherited from NSObject - mediaStyle: UAInAppMessageMediaStyle; + static new(): UAJavaScriptCommand; // inherited from NSObject - readonly debugDescription: string; // inherited from NSObjectProtocol + readonly URL: NSURL; - readonly description: string; // inherited from NSObjectProtocol + readonly arguments: NSArray; - readonly hash: number; // inherited from NSObjectProtocol + readonly name: string; - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly options: NSDictionary>; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + constructor(o: { URL: NSURL }); - readonly; // inherited from NSObjectProtocol + initWithURL(url: NSURL): this; +} - class(): typeof NSObject; +interface UAJavaScriptCommandDelegate { + performCommandWebView(command: UAJavaScriptCommand, webView: WKWebView): boolean; +} +declare var UAJavaScriptCommandDelegate: { + prototype: UAJavaScriptCommandDelegate; +}; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; +declare class UAJavaScriptEnvironment extends NSObject implements UAJavaScriptEnvironmentProtocol { + static alloc(): UAJavaScriptEnvironment; // inherited from NSObject - isEqual(object: any): boolean; + static new(): UAJavaScriptEnvironment; // inherited from NSObject - isKindOfClass(aClass: typeof NSObject): boolean; + addDictionaryGetterValue(getter: string, dictionary: NSDictionary): void; - isMemberOfClass(aClass: typeof NSObject): boolean; + addNumberGetterValue(getter: string, number: number): void; - performSelector(aSelector: string): any; + addStringGetterValue(getter: string, string: string): void; - performSelectorWithObject(aSelector: string, object: any): any; + buildWithCompletionHandler(completionHandler: (p1: string) => void): void; +} - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; +interface UAJavaScriptEnvironmentProtocol { + addDictionaryGetterValue(getter: string, dictionary: NSDictionary): void; - respondsToSelector(aSelector: string): boolean; + addNumberGetterValue(getter: string, number: number): void; - retainCount(): number; + addStringGetterValue(getter: string, string: string): void; - self(): this; + buildWithCompletionHandler(completionHandler: (p1: string) => void): void; } +declare var UAJavaScriptEnvironmentProtocol: { + prototype: UAJavaScriptEnvironmentProtocol; +}; -declare class UAInAppMessageHTMLAdapter extends NSObject implements UAInAppMessageAdapterProtocol { - static adapterForMessage(message: UAInAppMessage): UAInAppMessageHTMLAdapter; +declare class UALandingPageAction extends NSObject implements UALegacyAction { + static alloc(): UALandingPageAction; // inherited from NSObject - static alloc(): UAInAppMessageHTMLAdapter; // inherited from NSObject + static new(): UALandingPageAction; // inherited from NSObject - static new(): UAInAppMessageHTMLAdapter; // inherited from NSObject + borderRadiusPoints: number; - style: UAInAppMessageHTMLStyle; + builderExtender: UALandingPageBuilderExtender; readonly debugDescription: string; // inherited from NSObjectProtocol + readonly defaultNames: NSArray; // inherited from UALegacyAction + + readonly defaultPredicate: (p1: any, p2: number) => boolean; // inherited from UALegacyAction + readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol @@ -4025,27 +3308,25 @@ declare class UAInAppMessageHTMLAdapter extends NSObject implements UAInAppMessa readonly; // inherited from NSObjectProtocol + acceptsArgumentValueSituation(_arguments: any, situation: number): boolean; + class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; - display(completionHandler: (p1: UAInAppMessageResolution) => void): void; - isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; - isReadyToDisplay(): boolean; - performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - prepareWithAssetsCompletionHandler(assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; + performWithArgumentValueSituationPushUserInfoCompletionHandler(argument: any, situation: number, pushUserInfo: NSDictionary, completionHandler: () => void): void; respondsToSelector(aSelector: string): boolean; @@ -4054,2161 +3335,124 @@ declare class UAInAppMessageHTMLAdapter extends NSObject implements UAInAppMessa self(): this; } -declare var UAInAppMessageHTMLAllowsFullScreenKey: string; - -declare var UAInAppMessageHTMLAspectLockKey: string; - -declare class UAInAppMessageHTMLDisplayContent extends UAInAppMessageDisplayContent { - static alloc(): UAInAppMessageHTMLDisplayContent; // inherited from NSObject +declare var UALandingPageActionDefaultRegistryAlias: string; - static displayContentWithBuilderBlock(builderBlock: (p1: UAInAppMessageHTMLDisplayContentBuilder) => void): UAInAppMessageHTMLDisplayContent; +declare var UALandingPageActionDefaultRegistryName: string; - static new(): UAInAppMessageHTMLDisplayContent; // inherited from NSObject +declare var UALandingPageAspectLockKey: string; - readonly allowFullScreenDisplay: boolean; +interface UALandingPageBuilderExtender extends NSObjectProtocol { + extendMessageBuilder?(builder: UAInAppMessageBuilder): void; - readonly aspectLock: boolean; + extendScheduleBuilder?(builder: UAScheduleBuilder): void; +} +declare var UALandingPageBuilderExtender: { + prototype: UALandingPageBuilderExtender; +}; - readonly backgroundColor: UIColor; +declare var UALandingPageDefaultBorderRadiusPoints: number; - readonly borderRadiusPoints: number; +declare var UALandingPageHeightKey: string; - readonly dismissButtonColor: UIColor; +declare var UALandingPageURLKey: string; - readonly height: number; +declare var UALandingPageWidthKey: string; - readonly requireConnectivity: boolean; +interface UALegacyAction extends NSObjectProtocol { + defaultNames: NSArray; - readonly url: string; + defaultPredicate: (p1: any, p2: number) => boolean; - readonly width: number; + acceptsArgumentValueSituation(_arguments: any, situation: number): boolean; - extend(builderBlock: (p1: UAInAppMessageHTMLDisplayContentBuilder) => void): UAInAppMessageHTMLDisplayContent; + performWithArgumentValueSituationPushUserInfoCompletionHandler(argument: any, situation: number, pushUserInfo: NSDictionary, completionHandler: () => void): void; } +declare var UALegacyAction: { + prototype: UALegacyAction; +}; -declare class UAInAppMessageHTMLDisplayContentBuilder extends NSObject { - static alloc(): UAInAppMessageHTMLDisplayContentBuilder; // inherited from NSObject - - static new(): UAInAppMessageHTMLDisplayContentBuilder; // inherited from NSObject - - allowFullScreenDisplay: boolean; - - aspectLock: boolean; - - backgroundColor: UIColor; - - borderRadiusPoints: number; +declare class UALegacyInAppMessage extends NSObject { + static alloc(): UALegacyInAppMessage; // inherited from NSObject - dismissButtonColor: UIColor; + static message(): UALegacyInAppMessage; - height: number; + static messageWithPayload(payload: NSDictionary): UALegacyInAppMessage; - requiresConnectivity: boolean; + static new(): UALegacyInAppMessage; // inherited from NSObject - url: string; + alert: string; - width: number; + buttonActions: NSDictionary; - isValid(): boolean; -} + readonly buttonCategory: UNNotificationCategory; -declare var UAInAppMessageHTMLHeightKey: string; + buttonGroup: string; -declare var UAInAppMessageHTMLRequireConnectivityKey: string; + displayType: UALegacyInAppMessageDisplayType; -declare class UAInAppMessageHTMLStyle extends NSObject implements UAInAppMessageStyleProtocol { - static alloc(): UAInAppMessageHTMLStyle; // inherited from NSObject + duration: number; - static new(): UAInAppMessageHTMLStyle; // inherited from NSObject + expiry: Date; - static style(): UAInAppMessageHTMLStyle; + extra: NSDictionary; - static styleWithContentsOfFile(path: string): UAInAppMessageHTMLStyle; + identifier: string; - additionalPadding: UAPadding; + readonly notificationActions: NSArray; - dismissIconResource: string; + onClick: NSDictionary; - extendFullScreenLargeDevice: boolean; + readonly payload: NSDictionary; - hideDismissIcon: boolean; + position: UALegacyInAppMessagePosition; - maxHeight: number; + primaryColor: UIColor; - maxWidth: number; + secondaryColor: UIColor; - readonly debugDescription: string; // inherited from NSObjectProtocol + isEqualToMessage(message: UALegacyInAppMessage): boolean; +} - readonly description: string; // inherited from NSObjectProtocol +interface UALegacyInAppMessageBuilderExtender extends NSObjectProtocol { + extendMessageBuilderMessage?(builder: UAInAppMessageBuilder, message: UALegacyInAppMessage): void; - readonly hash: number; // inherited from NSObjectProtocol + extendScheduleBuilderMessage?(builder: UAScheduleBuilder, message: UALegacyInAppMessage): void; +} +declare var UALegacyInAppMessageBuilderExtender: { + prototype: UALegacyInAppMessageBuilderExtender; +}; - readonly isProxy: boolean; // inherited from NSObjectProtocol +declare const enum UALegacyInAppMessageDisplayType { + Banner = 0, +} - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol +interface UALegacyInAppMessageFactoryDelegate extends NSObjectProtocol { + scheduleForMessage(message: UALegacyInAppMessage): UASchedule; +} +declare var UALegacyInAppMessageFactoryDelegate: { + prototype: UALegacyInAppMessageFactoryDelegate; +}; - readonly; // inherited from NSObjectProtocol +declare const enum UALegacyInAppMessagePosition { + Top = 0, - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare var UAInAppMessageHTMLWidthKey: string; - -declare var UAInAppMessageHeadingKey: string; - -declare class UAInAppMessageImmediateDisplayCoordinator extends NSObject implements UAInAppMessageDisplayCoordinator { - static alloc(): UAInAppMessageImmediateDisplayCoordinator; // inherited from NSObject - - static coordinator(): UAInAppMessageImmediateDisplayCoordinator; - - static new(): UAInAppMessageImmediateDisplayCoordinator; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly isReady: boolean; // inherited from UAInAppMessageDisplayCoordinator - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - didBeginDisplayingMessage(message: UAInAppMessage): void; - - didFinishDisplayingMessage(message: UAInAppMessage): void; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare class UAInAppMessageManager extends NSObject { - static alloc(): UAInAppMessageManager; // inherited from NSObject - - static new(): UAInAppMessageManager; // inherited from NSObject - - readonly assetManager: UAInAppMessageAssetManager; - - delegate: UAInAppMessagingDelegate; - - displayInterval: number; - - notifyDisplayConditionsChanged(): void; - - setFactoryBlockForDisplayType(factory: (p1: UAInAppMessage) => UAInAppMessageAdapterProtocol, displayType: UAInAppMessageDisplayType): void; -} - -declare class UAInAppMessageMediaInfo extends NSObject { - static alloc(): UAInAppMessageMediaInfo; // inherited from NSObject - - static mediaInfoWithURLContentDescriptionType(url: string, contentDescription: string, type: UAInAppMessageMediaInfoType): UAInAppMessageMediaInfo; - - static new(): UAInAppMessageMediaInfo; // inherited from NSObject - - readonly contentDescription: string; - - readonly type: UAInAppMessageMediaInfoType; - - readonly url: string; -} - -declare const enum UAInAppMessageMediaInfoType { - Image = 0, - - Video = 1, - - YouTube = 2, -} - -declare var UAInAppMessageMediaKey: string; - -declare class UAInAppMessageMediaStyle extends NSObject { - static alloc(): UAInAppMessageMediaStyle; // inherited from NSObject - - static new(): UAInAppMessageMediaStyle; // inherited from NSObject - - static styleWithAdditionalPadding(additionalPadding: UAPadding): UAInAppMessageMediaStyle; - - static styleWithDictionary(mediaStyleDict: NSDictionary): UAInAppMessageMediaStyle; - - additionalPadding: UAPadding; -} - -declare class UAInAppMessageModalAdapter extends NSObject implements UAInAppMessageAdapterProtocol { - static adapterForMessage(message: UAInAppMessage): UAInAppMessageModalAdapter; - - static alloc(): UAInAppMessageModalAdapter; // inherited from NSObject - - static new(): UAInAppMessageModalAdapter; // inherited from NSObject - - style: UAInAppMessageModalStyle; - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - display(completionHandler: (p1: UAInAppMessageResolution) => void): void; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - isReadyToDisplay(): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - prepareWithAssetsCompletionHandler(assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare var UAInAppMessageModalAllowsFullScreenKey: string; - -declare const enum UAInAppMessageModalContentLayoutType { - HeaderMediaBody = 0, - - MediaHeaderBody = 1, - - HeaderBodyMedia = 2, -} - -declare class UAInAppMessageModalDisplayContent extends UAInAppMessageDisplayContent { - static alloc(): UAInAppMessageModalDisplayContent; // inherited from NSObject - - static displayContentWithBuilderBlock(builderBlock: (p1: UAInAppMessageModalDisplayContentBuilder) => void): UAInAppMessageModalDisplayContent; - - static new(): UAInAppMessageModalDisplayContent; // inherited from NSObject - - readonly allowFullScreenDisplay: boolean; - - readonly backgroundColor: UIColor; - - readonly body: UAInAppMessageTextInfo; - - readonly borderRadiusPoints: number; - - readonly buttonLayout: UAInAppMessageButtonLayoutType; - - readonly buttons: NSArray; - - readonly contentLayout: UAInAppMessageModalContentLayoutType; - - readonly dismissButtonColor: UIColor; - - readonly footer: UAInAppMessageButtonInfo; - - readonly heading: UAInAppMessageTextInfo; - - readonly media: UAInAppMessageMediaInfo; - - extend(builderBlock: (p1: UAInAppMessageModalDisplayContentBuilder) => void): UAInAppMessageModalDisplayContent; -} - -declare class UAInAppMessageModalDisplayContentBuilder extends NSObject { - static alloc(): UAInAppMessageModalDisplayContentBuilder; // inherited from NSObject - - static new(): UAInAppMessageModalDisplayContentBuilder; // inherited from NSObject - - allowFullScreenDisplay: boolean; - - backgroundColor: UIColor; - - body: UAInAppMessageTextInfo; - - borderRadiusPoints: number; - - buttonLayout: UAInAppMessageButtonLayoutType; - - buttons: NSArray; - - contentLayout: UAInAppMessageModalContentLayoutType; - - dismissButtonColor: UIColor; - - footer: UAInAppMessageButtonInfo; - - heading: UAInAppMessageTextInfo; - - media: UAInAppMessageMediaInfo; - - isValid(): boolean; -} - -declare var UAInAppMessageModalMaxButtons: number; - -declare class UAInAppMessageModalStyle extends NSObject implements UAInAppMessageStyleProtocol { - static alloc(): UAInAppMessageModalStyle; // inherited from NSObject - - static new(): UAInAppMessageModalStyle; // inherited from NSObject - - static style(): UAInAppMessageModalStyle; - - static styleWithContentsOfFile(path: string): UAInAppMessageModalStyle; - - additionalPadding: UAPadding; - - bodyStyle: UAInAppMessageTextStyle; - - buttonStyle: UAInAppMessageButtonStyle; - - dismissIconResource: string; - - extendFullScreenLargeDevice: boolean; - - headerStyle: UAInAppMessageTextStyle; - - maxHeight: number; - - maxWidth: number; - - mediaStyle: UAInAppMessageMediaStyle; - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare var UAInAppMessageNameLimit: number; - -declare var UAInAppMessagePlacementKey: string; - -interface UAInAppMessagePrepareAssetsDelegate extends NSObjectProtocol { - onPrepareAssetsCompletionHandler(message: UAInAppMessage, assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; - - onScheduleAssetsCompletionHandler(message: UAInAppMessage, assets: UAInAppMessageAssets, completionHandler: (p1: UAInAppMessagePrepareResult) => void): void; -} -declare var UAInAppMessagePrepareAssetsDelegate: { - prototype: UAInAppMessagePrepareAssetsDelegate; -}; - -declare const enum UAInAppMessagePrepareResult { - Success = 0, - - Retry = 1, - - Cancel = 2, - - Invalidate = 3, -} - -declare class UAInAppMessageResolution extends NSObject { - static alloc(): UAInAppMessageResolution; // inherited from NSObject - - static buttonClickResolutionWithButtonInfo(buttonInfo: UAInAppMessageButtonInfo): UAInAppMessageResolution; - - static messageClickResolution(): UAInAppMessageResolution; - - static new(): UAInAppMessageResolution; // inherited from NSObject - - static timedOutResolution(): UAInAppMessageResolution; - - static userDismissedResolution(): UAInAppMessageResolution; - - readonly buttonInfo: UAInAppMessageButtonInfo; - - readonly type: UAInAppMessageResolutionType; -} - -declare const enum UAInAppMessageResolutionType { - ButtonClick = 0, - - MessageClick = 1, - - UserDismissed = 2, - - TimedOut = 3, -} - -interface UAInAppMessageSceneDelegate extends NSObjectProtocol { - sceneForMessageDefaultScene?(message: UAInAppMessage, defaultScene: UIWindowScene): UIWindowScene; -} -declare var UAInAppMessageSceneDelegate: { - prototype: UAInAppMessageSceneDelegate; -}; - -declare class UAInAppMessageSceneManager extends NSObject { - static alloc(): UAInAppMessageSceneManager; // inherited from NSObject - - static new(): UAInAppMessageSceneManager; // inherited from NSObject - - delegate: UAInAppMessageSceneDelegate; - - static readonly shared: UAInAppMessageSceneManager; - - sceneForMessage(message: UAInAppMessage): UIWindowScene; -} - -declare class UAInAppMessageSchedule extends UASchedule { - static alloc(): UAInAppMessageSchedule; // inherited from NSObject - - static new(): UAInAppMessageSchedule; // inherited from NSObject - - static scheduleWithMessageBuilderBlock(message: UAInAppMessage, builderBlock: (p1: UAScheduleBuilder) => void): UAInAppMessageSchedule; - - readonly message: UAInAppMessage; -} - -interface UAInAppMessageStyleProtocol extends NSObjectProtocol {} -declare var UAInAppMessageStyleProtocol: { - prototype: UAInAppMessageStyleProtocol; - - style(): UAInAppMessageStyleProtocol; - - styleWithContentsOfFile(path: string): UAInAppMessageStyleProtocol; -}; - -declare class UAInAppMessageTextInfo extends NSObject { - static alloc(): UAInAppMessageTextInfo; // inherited from NSObject - - static new(): UAInAppMessageTextInfo; // inherited from NSObject - - static textInfoWithBuilderBlock(builderBlock: (p1: UAInAppMessageTextInfoBuilder) => void): UAInAppMessageTextInfo; - - readonly alignment: UAInAppMessageTextInfoAlignmentType; - - readonly color: UIColor; - - readonly fontFamilies: NSArray; - - readonly sizePoints: number; - - readonly style: UAInAppMessageTextInfoStyleType; - - readonly text: string; - - extend(builderBlock: (p1: UAInAppMessageTextInfoBuilder) => void): UAInAppMessageTextInfo; -} - -declare const enum UAInAppMessageTextInfoAlignmentType { - None = 0, - - Left = 1, - - Center = 2, - - Right = 3, -} - -declare class UAInAppMessageTextInfoBuilder extends NSObject { - static alloc(): UAInAppMessageTextInfoBuilder; // inherited from NSObject - - static new(): UAInAppMessageTextInfoBuilder; // inherited from NSObject - - alignment: UAInAppMessageTextInfoAlignmentType; - - color: UIColor; - - fontFamilies: NSArray; - - sizePoints: number; - - style: UAInAppMessageTextInfoStyleType; - - text: string; - - isValid(): boolean; -} - -declare const enum UAInAppMessageTextInfoStyleType { - Normal = 0, - - Bold = 1, - - Italic = 2, - - Underline = 4, -} - -declare class UAInAppMessageTextStyle extends NSObject { - static alloc(): UAInAppMessageTextStyle; // inherited from NSObject - - static new(): UAInAppMessageTextStyle; // inherited from NSObject - - static styleWithAdditionalPaddingLetterSpacingLineSpacing(additionalPadding: UAPadding, letterSpacing: number, lineSpacing: number): UAInAppMessageTextStyle; - - static styleWithDictionary(textStyle: NSDictionary): UAInAppMessageTextStyle; - - additionalPadding: UAPadding; - - letterSpacing: number; - - lineSpacing: number; -} - -declare var UAInAppMessageURLKey: string; - -interface UAInAppMessagingDelegate extends NSObjectProtocol { - displayCoordinatorForMessage?(message: UAInAppMessage): UAInAppMessageDisplayCoordinator; - - extendMessage?(message: UAInAppMessage): UAInAppMessage; - - isMessageReadyForDisplay?(message: UAInAppMessage): boolean; - - messageFinishedDisplayingScheduleIDResolution?(message: UAInAppMessage, scheduleID: string, resolution: UAInAppMessageResolution): void; - - messageWillBeDisplayedScheduleID?(message: UAInAppMessage, scheduleID: string): void; - - sceneForMessageDefaultScene?(message: UAInAppMessage, defaultScene: UIWindowScene): UIWindowScene; -} -declare var UAInAppMessagingDelegate: { - prototype: UAInAppMessagingDelegate; -}; - -declare class UAInboxMessage extends NSObject { - static alloc(): UAInboxMessage; // inherited from NSObject - - static new(): UAInboxMessage; // inherited from NSObject - - readonly contentType: string; - - readonly deleted: boolean; - - readonly extra: NSDictionary; - - readonly messageBodyURL: NSURL; - - readonly messageExpiration: Date; - - readonly messageID: string; - - readonly messageList: UAInboxMessageList; - - readonly messageSent: Date; - - readonly messageURL: NSURL; - - readonly rawMessageObject: NSDictionary; - - readonly title: string; - - readonly unread: boolean; - - isExpired(): boolean; - - markMessageReadWithCompletionHandler(completionHandler: (p1: UAInboxMessage) => void): UADisposable; -} - -declare class UAInboxMessageList extends NSObject { - static alloc(): UAInboxMessageList; // inherited from NSObject - - static new(): UAInboxMessageList; // inherited from NSObject - - readonly isBatchUpdating: boolean; - - readonly isRetrieving: boolean; - - readonly messages: NSArray; - - unreadCount: number; - - markMessagesDeletedCompletionHandler(messages: NSArray | any[], completionHandler: () => void): UADisposable; - - markMessagesReadCompletionHandler(messages: NSArray | any[], completionHandler: () => void): UADisposable; - - messageCount(): number; - - messageForBodyURL(url: NSURL): UAInboxMessage; - - messageForID(messageID: string): UAInboxMessage; - - messagesFilteredUsingPredicate(predicate: NSPredicate): NSArray; - - retrieveMessageListWithSuccessBlockWithFailureBlock(successBlock: () => void, failureBlock: () => void): UADisposable; -} - -declare var UAInboxMessageListUpdatedNotification: string; - -declare var UAInboxMessageListWillUpdateNotification: string; - -declare class UAInboxUtils extends NSObject { - static alloc(): UAInboxUtils; // inherited from NSObject - - static inboxMessageIDFromNotification(notification: NSDictionary): string; - - static inboxMessageIDFromValue(values: any): string; - - static new(): UAInboxUtils; // inherited from NSObject - - static userAuthHeaderString(userData: UAUserData): string; -} - -declare class UAInstallAttributionEvent extends NSObject implements UAEvent { - static alloc(): UAInstallAttributionEvent; // inherited from NSObject - - static event(): UAInstallAttributionEvent; - - static eventWithAppPurchaseDateIAdImpressionDate(appPurchaseDate: Date, iAdImpressionDate: Date): UAInstallAttributionEvent; - - static new(): UAInstallAttributionEvent; // inherited from NSObject - - readonly data: NSDictionary; // inherited from UAEvent - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly eventType: string; // inherited from UAEvent - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly priority: UAEventPriority; // inherited from UAEvent - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - constructor(o: { appPurchaseDate: Date; iAdImpressionDate: Date }); - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - initWithAppPurchaseDateIAdImpressionDate(appPurchaseDate: Date, iAdImpressionDate: Date): this; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - isValid(): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare class UAInteractiveNotificationEvent extends NSObject implements UAEvent { - static alloc(): UAInteractiveNotificationEvent; // inherited from NSObject - - static new(): UAInteractiveNotificationEvent; // inherited from NSObject - - readonly data: NSDictionary; // inherited from UAEvent - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly eventType: string; // inherited from UAEvent - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly priority: UAEventPriority; // inherited from UAEvent - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - constructor(o: { action: UNNotificationAction; category: string; notification: NSDictionary; responseText: string }); - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - initWithActionCategoryNotificationResponseText(action: UNNotificationAction, category: string, notification: NSDictionary, responseText: string): this; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - isValid(): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare class UAJSONMatcher extends NSObject { - static alloc(): UAJSONMatcher; // inherited from NSObject - - static new(): UAJSONMatcher; // inherited from NSObject - - constructor(o: { JSON: any }); - - constructor(o: { valueMatcher: UAJSONValueMatcher }); - - constructor(o: { valueMatcher: UAJSONValueMatcher; ignoreCase: boolean }); - - constructor(o: { valueMatcher: UAJSONValueMatcher; key: string }); - - constructor(o: { valueMatcher: UAJSONValueMatcher; key: string; scope: NSArray | string[] }); - - constructor(o: { valueMatcher: UAJSONValueMatcher; scope: NSArray | string[] }); - - constructor(o: { valueMatcher: UAJSONValueMatcher; scope: NSArray | string[]; ignoreCase: boolean }); - - evaluateObject(value: any): boolean; - - evaluateObjectIgnoreCase(value: any, ignoreCase: boolean): boolean; - - initWithJSONError(json: any): this; - - initWithValueMatcher(valueMatcher: UAJSONValueMatcher): this; - - initWithValueMatcherIgnoreCase(valueMatcher: UAJSONValueMatcher, ignoreCase: boolean): this; - - initWithValueMatcherKey(valueMatcher: UAJSONValueMatcher, key: string): this; - - initWithValueMatcherKeyScope(valueMatcher: UAJSONValueMatcher, key: string, scope: NSArray | string[]): this; - - initWithValueMatcherScope(valueMatcher: UAJSONValueMatcher, scope: NSArray | string[]): this; - - initWithValueMatcherScopeIgnoreCase(valueMatcher: UAJSONValueMatcher, scope: NSArray | string[], ignoreCase: boolean): this; - - isEqualToJSONMatcher(matcher: UAJSONMatcher): boolean; - - payload(): NSDictionary; -} - -declare class UAJSONPredicate extends NSObject { - static alloc(): UAJSONPredicate; // inherited from NSObject - - static andPredicateWithSubpredicates(subpredicates: NSArray | UAJSONPredicate[]): UAJSONPredicate; - - static new(): UAJSONPredicate; // inherited from NSObject - - static notPredicateWithSubpredicate(subpredicate: UAJSONPredicate): UAJSONPredicate; - - static orPredicateWithSubpredicates(subpredicates: NSArray | UAJSONPredicate[]): UAJSONPredicate; - - constructor(o: { JSON: any }); - - constructor(o: { JSONMatcher: UAJSONMatcher }); - - evaluateObject(object: any): boolean; - - initWithJSONError(json: any): this; - - initWithJSONMatcher(matcher: UAJSONMatcher): this; - - payload(): NSDictionary; -} - -declare class UAJSONUtils extends NSObject { - static alloc(): UAJSONUtils; // inherited from NSObject - - static dataWithObjectOptionsError(obj: any, options: NSJSONWritingOptions): NSData; - - static new(): UAJSONUtils; // inherited from NSObject - - static objectWithString(string: string): any; - - static objectWithStringOptionsError(string: string, options: NSJSONReadingOptions): any; - - static stringWithObject(obj: any): string; - - static stringWithObjectOptionsError(obj: any, options: NSJSONWritingOptions): string; -} - -declare class UAJSONValueMatcher extends NSObject { - static alloc(): UAJSONValueMatcher; // inherited from NSObject - - static matcherWhereBooleanEquals(boolean: boolean): UAJSONValueMatcher; - - static matcherWhereNumberAtLeast(number: number): UAJSONValueMatcher; - - static matcherWhereNumberAtLeastAtMost(lowerNumber: number, higherNumber: number): UAJSONValueMatcher; - - static matcherWhereNumberAtMost(number: number): UAJSONValueMatcher; - - static matcherWhereNumberEquals(number: number): UAJSONValueMatcher; - - static matcherWhereStringEquals(string: string): UAJSONValueMatcher; - - static matcherWhereValueIsPresent(present: boolean): UAJSONValueMatcher; - - static matcherWithArrayContainsPredicate(predicate: UAJSONPredicate): UAJSONValueMatcher; - - static matcherWithArrayContainsPredicateAtIndex(predicate: UAJSONPredicate, index: number): UAJSONValueMatcher; - - static matcherWithJSONError(json: any): UAJSONValueMatcher; - - static matcherWithVersionConstraint(versionConstraint: string): UAJSONValueMatcher; - - static new(): UAJSONValueMatcher; // inherited from NSObject - - evaluateObject(value: any): boolean; - - evaluateObjectIgnoreCase(value: any, ignoreCase: boolean): boolean; - - payload(): NSDictionary; - - valueIsEqualToValueIgnoreCase(valueOne: any, valueTwo: any, ignoreCase: boolean): boolean; -} - -declare class UAJavaScriptCommand extends NSObject { - static alloc(): UAJavaScriptCommand; // inherited from NSObject - - static commandForURL(URL: NSURL): UAJavaScriptCommand; - - static new(): UAJavaScriptCommand; // inherited from NSObject - - readonly URL: NSURL; - - readonly arguments: NSArray; - - readonly name: string; - - readonly options: NSDictionary; - - constructor(o: { URL: NSURL }); - - initWithURL(URL: NSURL): this; -} - -interface UAJavaScriptCommandDelegate extends NSObjectProtocol { - performCommandWebView(command: UAJavaScriptCommand, webView: WKWebView): boolean; -} -declare var UAJavaScriptCommandDelegate: { - prototype: UAJavaScriptCommandDelegate; -}; - -declare class UAJavaScriptEnvironment extends NSObject implements UAJavaScriptEnvironmentProtocol { - static alloc(): UAJavaScriptEnvironment; // inherited from NSObject - - static new(): UAJavaScriptEnvironment; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - addDictionaryGetterValue(methodName: string, value: NSDictionary): void; - - addNumberGetterValue(methodName: string, value: number): void; - - addStringGetterValue(methodName: string, value: string): void; - - build(): string; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -interface UAJavaScriptEnvironmentProtocol extends NSObjectProtocol { - addDictionaryGetterValue(methodName: string, value: NSDictionary): void; - - addNumberGetterValue(methodName: string, value: number): void; - - addStringGetterValue(methodName: string, value: string): void; - - build(): string; -} -declare var UAJavaScriptEnvironmentProtocol: { - prototype: UAJavaScriptEnvironmentProtocol; -}; - -declare class UALandingPageAction extends NSObject implements UAAction { - static alloc(): UALandingPageAction; // inherited from NSObject - - static new(): UALandingPageAction; // inherited from NSObject - - borderRadiusPoints: number; - - builderExtender: UALandingPageBuilderExtender; - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - acceptsArguments(_arguments: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; -} - -declare var UALandingPageActionDefaultRegistryAlias: string; - -declare var UALandingPageActionDefaultRegistryName: string; - -declare var UALandingPageAspectLockKey: string; - -interface UALandingPageBuilderExtender extends NSObjectProtocol { - extendMessageBuilder?(builder: UAInAppMessageBuilder): void; - - extendScheduleBuilder?(builder: UAScheduleBuilder): void; -} -declare var UALandingPageBuilderExtender: { - prototype: UALandingPageBuilderExtender; -}; - -declare var UALandingPageDefaultBorderRadiusPoints: number; - -declare var UALandingPageHeightKey: string; - -declare var UALandingPageURLKey: string; - -declare var UALandingPageWidthKey: string; - -declare class UALegacyInAppMessage extends NSObject { - static alloc(): UALegacyInAppMessage; // inherited from NSObject - - static message(): UALegacyInAppMessage; - - static messageWithPayload(payload: NSDictionary): UALegacyInAppMessage; - - static new(): UALegacyInAppMessage; // inherited from NSObject - - alert: string; - - buttonActions: NSDictionary; - - readonly buttonCategory: UNNotificationCategory; - - buttonGroup: string; - - displayType: UALegacyInAppMessageDisplayType; - - duration: number; - - expiry: Date; - - extra: NSDictionary; - - identifier: string; - - readonly notificationActions: NSArray; - - onClick: NSDictionary; - - readonly payload: NSDictionary; - - position: UALegacyInAppMessagePosition; - - primaryColor: UIColor; - - secondaryColor: UIColor; - - isEqualToMessage(message: UALegacyInAppMessage): boolean; -} - -interface UALegacyInAppMessageBuilderExtender extends NSObjectProtocol { - extendMessageBuilderMessage?(builder: UAInAppMessageBuilder, message: UALegacyInAppMessage): void; - - extendScheduleBuilderMessage?(builder: UAScheduleBuilder, message: UALegacyInAppMessage): void; -} -declare var UALegacyInAppMessageBuilderExtender: { - prototype: UALegacyInAppMessageBuilderExtender; -}; - -declare const enum UALegacyInAppMessageDisplayType { - Banner = 0, -} - -interface UALegacyInAppMessageFactoryDelegate extends NSObjectProtocol { - scheduleForMessage(message: UALegacyInAppMessage): UASchedule; -} -declare var UALegacyInAppMessageFactoryDelegate: { - prototype: UALegacyInAppMessageFactoryDelegate; -}; - -declare const enum UALegacyInAppMessagePosition { - Top = 0, - - Bottom = 1, -} - -declare class UALegacyInAppMessaging extends NSObject implements UAComponent, UALegacyInAppMessageFactoryDelegate { - static alloc(): UALegacyInAppMessaging; // inherited from NSObject - - static new(): UALegacyInAppMessaging; // inherited from NSObject - - builderExtender: UALegacyInAppMessageBuilderExtender; - - displayASAPEnabled: boolean; - - factoryDelegate: UALegacyInAppMessageFactoryDelegate; - - static readonly shared: UALegacyInAppMessaging; - - componentEnabled: boolean; // inherited from UAComponent - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - airshipReady(): void; - - applyRemoteConfig(config: any): void; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - deepLink(deepLink: NSURL): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - scheduleForMessage(message: UALegacyInAppMessage): UASchedule; - - self(): this; -} - -declare class UALegacyLoggingBridge extends NSObject { - static alloc(): UALegacyLoggingBridge; // inherited from NSObject - - static logWithLevelFunctionLineMessage(level: number, _function: string, line: number, messageBlock: () => string): void; - - static new(): UALegacyLoggingBridge; // inherited from NSObject - - static logger: (p1: number, p2: string, p3: number, p4: () => string) => void; -} - -declare var UALineSpacingKey: string; - -declare class UALocaleManager extends NSObject implements LocaleManagerProtocol { - static alloc(): UALocaleManager; // inherited from NSObject - - static new(): UALocaleManager; // inherited from NSObject - - currentLocale: NSLocale; - - static readonly localeEventKey: string; - - static readonly localeUpdatedEvent: string; - - constructor(o: { dataStore: UAPreferenceDataStore }); - - constructor(o: { dataStore: UAPreferenceDataStore; notificationCenter: NSNotificationCenter }); - - clearLocale(): void; - - initWithDataStore(dataStore: UAPreferenceDataStore): this; - - initWithDataStoreNotificationCenter(dataStore: UAPreferenceDataStore, notificationCenter: NSNotificationCenter): this; -} - -declare class UALocalizationUtils extends NSObject { - static alloc(): UALocalizationUtils; // inherited from NSObject - - static localizedStringExistsInTableModuleBundle(string: string, table: string, moduleBundle: NSBundle): boolean; - - static localizedStringExistsInTableModuleBundleFallbackLocale(string: string, table: string, moduleBundle: NSBundle, fallbackLocale: string): boolean; - - static localizedStringWithTableModuleBundle(string: string, table: string, moduleBundle: NSBundle): string; - - static localizedStringWithTableModuleBundleDefaultValue(string: string, table: string, moduleBundle: NSBundle, defaultValue: string): string; - - static localizedStringWithTableModuleBundleFallbackLocale(string: string, table: string, moduleBundle: NSBundle, fallbackLocale: string): string; - - static new(): UALocalizationUtils; // inherited from NSObject -} - -interface UALocationProvider extends NSObjectProtocol { - backgroundLocationUpdatesAllowed: boolean; - - locationUpdatesEnabled: boolean; - - isLocationDeniedOrRestricted(): boolean; - - isLocationOptedIn(): boolean; -} -declare var UALocationProvider: { - prototype: UALocationProvider; -}; - -declare const enum UALogLevel { - Undefined = -1, - - None = 0, - - Error = 1, - - Warn = 2, - - Info = 3, - - Debug = 4, - - Trace = 5, -} - -declare class UAMediaEventTemplate extends NSObject { - static alloc(): UAMediaEventTemplate; // inherited from NSObject - - static browsedTemplate(): UAMediaEventTemplate; - - static consumedTemplate(): UAMediaEventTemplate; - - static consumedTemplateWithValue(value: number): UAMediaEventTemplate; - - static consumedTemplateWithValueFromString(valueString: string): UAMediaEventTemplate; - - static new(): UAMediaEventTemplate; // inherited from NSObject - - static sharedTemplate(): UAMediaEventTemplate; - - static sharedTemplateWithSourceWithMedium(source: string, medium: string): UAMediaEventTemplate; - - static starredTemplate(): UAMediaEventTemplate; - - author: string; - - category: string; - - eventDescription: string; - - identifier: string; - - isFeature: boolean; - - publishedDate: string; - - type: string; - - createEvent(): UACustomEvent; -} - -declare class UAMessageCenter extends NSObject implements UAComponent { - static alloc(): UAMessageCenter; // inherited from NSObject - - static new(): UAMessageCenter; // inherited from NSObject - - readonly defaultUI: UADefaultMessageCenterUI; - - displayDelegate: UAMessageCenterDisplayDelegate; - - readonly messageList: UAInboxMessageList; - - readonly user: UAUser; - - static readonly shared: UAMessageCenter; - - componentEnabled: boolean; // inherited from UAComponent - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - airshipReady(): void; - - applyRemoteConfig(config: any): void; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - deepLink(deepLink: NSURL): boolean; - - dismiss(animated: boolean): void; - - display(animated: boolean): void; - - displayMessageForID(messageID: string): void; - - displayMessageForIDAnimated(messageID: string, animated: boolean): void; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare class UAMessageCenterAction extends NSObject implements UAAction { - static alloc(): UAMessageCenterAction; // inherited from NSObject - - static new(): UAMessageCenterAction; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - acceptsArguments(_arguments: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; -} - -declare class UAMessageCenterDateUtils extends NSObject { - static alloc(): UAMessageCenterDateUtils; // inherited from NSObject - - static formattedDateRelativeToNow(date: Date): string; - - static new(): UAMessageCenterDateUtils; // inherited from NSObject -} - -interface UAMessageCenterDisplayDelegate extends NSObjectProtocol { - dismissMessageCenterAnimated(animated: boolean): void; - - displayMessageCenterAnimated(animated: boolean): void; - - displayMessageCenterForMessageIDAnimated(messageID: string, animated: boolean): void; -} -declare var UAMessageCenterDisplayDelegate: { - prototype: UAMessageCenterDisplayDelegate; -}; - -declare class UAMessageCenterListCell extends UITableViewCell { - static alloc(): UAMessageCenterListCell; // inherited from NSObject - - static appearance(): UAMessageCenterListCell; // inherited from UIAppearance - - static appearanceForTraitCollection(trait: UITraitCollection): UAMessageCenterListCell; // inherited from UIAppearance - - static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UAMessageCenterListCell; // inherited from UIAppearance - - static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | (typeof NSObject)[]): UAMessageCenterListCell; // inherited from UIAppearance - - static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UAMessageCenterListCell; // inherited from UIAppearance - - static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | (typeof NSObject)[]): UAMessageCenterListCell; // inherited from UIAppearance - - static new(): UAMessageCenterListCell; // inherited from NSObject - - date: UILabel; - - listIconView: UIImageView; - - messageCenterStyle: UAMessageCenterStyle; - - title: UILabel; - - unreadIndicator: UIView; - - setData(message: UAInboxMessage): void; -} - -interface UAMessageCenterListViewDelegate extends NSObjectProtocol { - didSelectMessageWithID(messageID: string): void; - - shouldClearSelectionOnViewWillAppear(): boolean; -} -declare var UAMessageCenterListViewDelegate: { - prototype: UAMessageCenterListViewDelegate; -}; - -declare const enum UAMessageCenterMessageLoadErrorCode { - ListUnavailable = 0, - - FailureStatus = 1, - - MessageExpired = 2, -} - -declare var UAMessageCenterMessageLoadErrorDomain: string; - -declare var UAMessageCenterMessageLoadErrorHTTPStatusKey: string; - -interface UAMessageCenterMessageViewDelegate extends NSObjectProtocol { - messageClosed(messageID: string): void; - - messageLoadFailedError(messageID: string, error: NSError): void; - - messageLoadStarted(messageID: string): void; - - messageLoadSucceeded(messageID: string): void; -} -declare var UAMessageCenterMessageViewDelegate: { - prototype: UAMessageCenterMessageViewDelegate; -}; - -declare class UAMessageCenterNativeBridgeExtension extends NSObject implements UANativeBridgeExtensionDelegate { - static alloc(): UAMessageCenterNativeBridgeExtension; // inherited from NSObject - - static new(): UAMessageCenterNativeBridgeExtension; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - actionsMetadataForCommandWebView(command: UAJavaScriptCommand, webView: WKWebView): NSDictionary; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - extendJavaScriptEnvironmentWebView(js: UAJavaScriptEnvironmentProtocol, webView: WKWebView): void; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare class UAMessageCenterResources extends NSObject { - static alloc(): UAMessageCenterResources; // inherited from NSObject - - static bundle(): NSBundle; - - static new(): UAMessageCenterResources; // inherited from NSObject -} - -declare class UAMessageCenterSDKModule extends NSObject implements UASDKModule { - static alloc(): UAMessageCenterSDKModule; // inherited from NSObject - - static loadWithDependencies(dependencies: NSDictionary): UASDKModule; - - static new(): UAMessageCenterSDKModule; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - actionsPlist(): string; - - class(): typeof NSObject; - - components(): NSArray; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare class UAMessageCenterStyle extends NSObject { - static alloc(): UAMessageCenterStyle; // inherited from NSObject - - static new(): UAMessageCenterStyle; // inherited from NSObject - - static style(): UAMessageCenterStyle; - - static styleWithContentsOfFile(path: string): UAMessageCenterStyle; - - cancelButtonTitleColor: UIColor; - - cellColor: UIColor; - - cellDateColor: UIColor; - - cellDateFont: UIFont; - - cellDateHighlightedColor: UIColor; - - cellHighlightedColor: UIColor; - - cellSeparatorColor: UIColor; - - cellSeparatorInset: UIEdgeInsets; - - cellSeparatorStyle: UITableViewCellSeparatorStyle; - - cellTintColor: UIColor; - - cellTitleColor: UIColor; - - cellTitleFont: UIFont; - - cellTitleHighlightedColor: UIColor; - - deleteButtonTitleColor: UIColor; - - editButtonTitleColor: UIColor; - - iconsEnabled: boolean; - - listColor: UIColor; - - markAsReadButtonTitleColor: UIColor; - - navigationBarColor: UIColor; - - navigationBarOpaque: boolean; - - navigationBarStyle: UANavigationBarStyle; - - placeholderIcon: UIImage; - - refreshTintColor: UIColor; - - selectAllButtonTitleColor: UIColor; - - tintColor: UIColor; - - titleColor: UIColor; - - titleFont: UIFont; - - unreadIndicatorColor: UIColor; -} - -declare var UAMessageDataScheme: string; - -declare var UAModalAdditionalPaddingKey: string; - -declare var UAModalBodyStyleKey: string; - -declare var UAModalButtonStyleKey: string; - -declare var UAModalDismissIconResourceKey: string; - -declare var UAModalHeaderStyleKey: string; - -declare var UAModalMaxHeightKey: string; - -declare var UAModalMaxWidthKey: string; - -declare var UAModalMediaStyleKey: string; - -declare var UAModalStyleFileName: string; - -declare var UAModalTextStyleKey: string; - -declare class UAModifyAttributesAction extends NSObject implements UAAction { - static alloc(): UAModifyAttributesAction; // inherited from NSObject - - static new(): UAModifyAttributesAction; // inherited from NSObject - - static readonly name: string; - - static readonly shortName: string; - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - constructor(o: { channel: () => UAChannelProtocol; contact: () => UAContactProtocol }); - - acceptsArguments(_arguments: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; - - initWithChannelContact(channel: () => UAChannelProtocol, contact: () => UAContactProtocol): this; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; -} - -declare class UAModifyTagsAction extends NSObject implements UAAction { - static alloc(): UAModifyTagsAction; // inherited from NSObject - - static new(): UAModifyTagsAction; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - constructor(o: { channel: () => UAChannelProtocol; contact: () => UAContactProtocol }); - - acceptsArguments(_arguments: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; - - initWithChannelContact(channel: () => UAChannelProtocol, contact: () => UAContactProtocol): this; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; -} - -declare class UAModuleLoader extends NSObject { - static alloc(): UAModuleLoader; // inherited from NSObject - - static new(): UAModuleLoader; // inherited from NSObject - - readonly actionPlists: NSArray; - - readonly components: NSArray; - - constructor(o: { config: UARuntimeConfig; dataStore: UAPreferenceDataStore; channel: UAChannel; contact: UAContact; push: UAPush; remoteData: UARemoteDataManager; analytics: UAAnalytics; privacyManager: UAPrivacyManager; permissionsManager: UAPermissionsManager }); - - initWithConfigDataStoreChannelContactPushRemoteDataAnalyticsPrivacyManagerPermissionsManager(config: UARuntimeConfig, dataStore: UAPreferenceDataStore, channel: UAChannel, contact: UAContact, push: UAPush, remoteData: UARemoteDataManager, analytics: UAAnalytics, privacyManager: UAPrivacyManager, permissionsManager: UAPermissionsManager): this; -} - -declare class UANSArrayValueTransformer extends NSValueTransformer { - static alloc(): UANSArrayValueTransformer; // inherited from NSObject - - static new(): UANSArrayValueTransformer; // inherited from NSObject -} - -declare class UANSDictionaryValueTransformer extends NSValueTransformer { - static alloc(): UANSDictionaryValueTransformer; // inherited from NSObject - - static new(): UANSDictionaryValueTransformer; // inherited from NSObject -} - -declare class UANSURLValueTransformer extends NSValueTransformer { - static alloc(): UANSURLValueTransformer; // inherited from NSObject - - static new(): UANSURLValueTransformer; // inherited from NSObject -} - -declare class UANamedUser extends NSObject implements UAComponent { - static alloc(): UANamedUser; // inherited from NSObject - - static new(): UANamedUser; // inherited from NSObject - - identifier: string; - - static readonly shared: UANamedUser; - - componentEnabled: boolean; // inherited from UAComponent - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - constructor(o: { dataStore: UAPreferenceDataStore; contact: UAContactProtocol }); - - addTagsGroup(tags: NSArray | string[], group: string): void; - - airshipReady(): void; - - applyAttributeMutations(mutations: UAAttributeMutations): void; - - applyRemoteConfig(config: any): void; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - deepLink(deepLink: NSURL): boolean; - - forceUpdate(): void; - - initWithDataStoreContact(dataStore: UAPreferenceDataStore, contact: UAContactProtocol): this; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - removeTagsGroup(tags: NSArray | string[], group: string): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - setTagsGroup(tags: NSArray | string[], group: string): void; - - updateTags(): void; -} - -declare class UANativeBridge extends NSObject implements WKNavigationDelegate { - static alloc(): UANativeBridge; // inherited from NSObject - - static new(): UANativeBridge; // inherited from NSObject - - forwardNavigationDelegate: UANavigationDelegate; - - javaScriptCommandDelegate: UAJavaScriptCommandDelegate; - - nativeBridgeDelegate: UANativeBridgeDelegate; - - nativeBridgeExtensionDelegate: UANativeBridgeExtensionDelegate; - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - constructor(o: { actionHandler: UANativeBridgeActionHandlerProtocol; javaScriptEnvironmentFactoryBlock: () => UAJavaScriptEnvironmentProtocol }); - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - initWithActionHandlerJavaScriptEnvironmentFactoryBlock(actionHandler: UANativeBridgeActionHandlerProtocol, javaScriptEnvironmentFactoryBlock: () => UAJavaScriptEnvironmentProtocol): this; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - webViewAuthenticationChallengeShouldAllowDeprecatedTLS(webView: WKWebView, challenge: NSURLAuthenticationChallenge, decisionHandler: (p1: boolean) => void): void; - - webViewDecidePolicyForNavigationActionDecisionHandler(webView: WKWebView, navigationAction: WKNavigationAction, decisionHandler: (p1: WKNavigationActionPolicy) => void): void; - - webViewDecidePolicyForNavigationActionPreferencesDecisionHandler(webView: WKWebView, navigationAction: WKNavigationAction, preferences: WKWebpagePreferences, decisionHandler: (p1: WKNavigationActionPolicy, p2: WKWebpagePreferences) => void): void; - - webViewDecidePolicyForNavigationResponseDecisionHandler(webView: WKWebView, navigationResponse: WKNavigationResponse, decisionHandler: (p1: WKNavigationResponsePolicy) => void): void; - - webViewDidCommitNavigation(webView: WKWebView, navigation: WKNavigation): void; - - webViewDidFailNavigationWithError(webView: WKWebView, navigation: WKNavigation, error: NSError): void; - - webViewDidFailProvisionalNavigationWithError(webView: WKWebView, navigation: WKNavigation, error: NSError): void; - - webViewDidFinishNavigation(webView: WKWebView, navigation: WKNavigation): void; - - webViewDidReceiveAuthenticationChallengeCompletionHandler(webView: WKWebView, challenge: NSURLAuthenticationChallenge, completionHandler: (p1: NSURLSessionAuthChallengeDisposition, p2: NSURLCredential) => void): void; - - webViewDidReceiveServerRedirectForProvisionalNavigation(webView: WKWebView, navigation: WKNavigation): void; - - webViewDidStartProvisionalNavigation(webView: WKWebView, navigation: WKNavigation): void; - - webViewNavigationActionDidBecomeDownload(webView: WKWebView, navigationAction: WKNavigationAction, download: WKDownload): void; - - webViewNavigationResponseDidBecomeDownload(webView: WKWebView, navigationResponse: WKNavigationResponse, download: WKDownload): void; - - webViewWebContentProcessDidTerminate(webView: WKWebView): void; -} - -interface UANativeBridgeActionHandlerProtocol { - runActionsForCommandMetadataCompletionHandler(command: UAJavaScriptCommand, metadata: NSDictionary, completionHandler: (p1: string) => void): void; -} -declare var UANativeBridgeActionHandlerProtocol: { - prototype: UANativeBridgeActionHandlerProtocol; -}; - -interface UANativeBridgeDelegate { - close(): void; -} -declare var UANativeBridgeDelegate: { - prototype: UANativeBridgeDelegate; -}; - -interface UANativeBridgeExtensionDelegate extends NSObjectProtocol { - actionsMetadataForCommandWebView?(command: UAJavaScriptCommand, webView: WKWebView): NSDictionary; - - extendJavaScriptEnvironmentWebView?(js: UAJavaScriptEnvironmentProtocol, webView: WKWebView): void; -} -declare var UANativeBridgeExtensionDelegate: { - prototype: UANativeBridgeExtensionDelegate; -}; - -declare const enum UANavigationBarStyle { - Default = 0, - - Black = 1, -} - -declare var UANavigationBarStyleBlackKey: string; - -declare var UANavigationBarStyleDefaultKey: string; - -interface UANavigationDelegate extends WKNavigationDelegate { - closeWindow?(animated: boolean): void; -} -declare var UANavigationDelegate: { - prototype: UANavigationDelegate; -}; - -declare class UANetworkMonitor extends NSObject { - static alloc(): UANetworkMonitor; // inherited from NSObject - - static new(): UANetworkMonitor; // inherited from NSObject - - connectionUpdates: (p1: boolean) => void; - - readonly isConnected: boolean; -} - -declare class UANotificationCategories extends NSObject { - static alloc(): UANotificationCategories; // inherited from NSObject - - static createCategoriesFromFile(path: string): NSSet; - - static createCategoryActions(categoryId: string, actionDefinitions: NSArray> | NSDictionary[]): UNNotificationCategory; - - static createCategoryActionsHiddenPreviewsBodyPlaceholder(categoryId: string, actionDefinitions: NSArray> | NSDictionary[], hiddenPreviewsBodyPlaceholder: string): UNNotificationCategory; - - static defaultCategories(): NSSet; - - static defaultCategoriesWithRequireAuth(requireAuth: boolean): NSSet; - - static new(): UANotificationCategories; // inherited from NSObject -} - -declare const enum UANotificationOptInConditionStatus { - OptedIn = 0, - - OptedOut = 1, -} - -declare const enum UANotificationOptions { - None = 0, - - Badge = 1, - - Sound = 2, - - Alert = 4, - - CarPlay = 8, - - CriticalAlert = 16, - - ProvidesAppNotificationSettings = 32, - - Provisional = 64, - - Announcement = 128, -} - -declare class UAOpenExternalURLAction extends NSObject implements UAAction { - static alloc(): UAOpenExternalURLAction; // inherited from NSObject - - static new(): UAOpenExternalURLAction; // inherited from NSObject - - static readonly name: string; - - static readonly shortName: string; - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - acceptsArguments(_arguments: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; -} - -declare class UAOpenRegistrationOptions extends NSObject { - static alloc(): UAOpenRegistrationOptions; // inherited from NSObject - - static new(): UAOpenRegistrationOptions; // inherited from NSObject - - static optInPlatformNameIdentifiers(platformName: string, identifiers: NSDictionary): UAOpenRegistrationOptions; -} - -declare class UAPadding extends NSObject { - static alloc(): UAPadding; // inherited from NSObject - - static new(): UAPadding; // inherited from NSObject - - static paddingWithDictionary(paddingDict: NSDictionary): UAPadding; - - static paddingWithTopBottomLeadingTrailing(top: number, bottom: number, leading: number, trailing: number): UAPadding; - - bottom: number; - - leading: number; - - top: number; + Bottom = 1, +} - trailing: number; +declare class UALegacyInAppMessaging extends NSObject implements UAComponent, UALegacyInAppMessageFactoryDelegate { + static alloc(): UALegacyInAppMessaging; // inherited from NSObject - constructor(o: { top: number; bottom: number; leading: number; trailing: number }); + static new(): UALegacyInAppMessaging; // inherited from NSObject - initWithTopBottomLeadingTrailing(top: number, bottom: number, leading: number, trailing: number): this; -} + builderExtender: UALegacyInAppMessageBuilderExtender; -declare class UAPasteboardAction extends NSObject implements UAAction { - static alloc(): UAPasteboardAction; // inherited from NSObject + displayASAPEnabled: boolean; - static new(): UAPasteboardAction; // inherited from NSObject + factoryDelegate: UALegacyInAppMessageFactoryDelegate; - static readonly name: string; + static readonly shared: UALegacyInAppMessaging; - static readonly shortname: string; + componentEnabled: boolean; // inherited from UAComponent readonly debugDescription: string; // inherited from NSObjectProtocol @@ -6222,13 +3466,15 @@ declare class UAPasteboardAction extends NSObject implements UAAction { readonly; // inherited from NSObjectProtocol - acceptsArguments(_arguments: UAActionArguments): boolean; + airshipReady(): void; + + applyRemoteConfig(config: any): void; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; + deepLink(deepLink: NSURL): boolean; isEqual(object: any): boolean; @@ -6242,100 +3488,139 @@ declare class UAPasteboardAction extends NSObject implements UAAction { performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - respondsToSelector(aSelector: string): boolean; retainCount(): number; - self(): this; + scheduleForMessage(message: UALegacyInAppMessage): UASchedule; - willPerformWithArguments(_arguments: UAActionArguments): void; + self(): this; } -declare const enum UAPermission { - DisplayNotifications = 0, +declare class UALegacyLoggingBridge extends NSObject { + static alloc(): UALegacyLoggingBridge; // inherited from NSObject - Location = 1, + static logWithLevelFunctionLineMessage(level: number, _function: string, line: number, messageBlock: () => string): void; + + static new(): UALegacyLoggingBridge; // inherited from NSObject + + static logger: (p1: number, p2: string, p3: number, p4: () => string) => void; } -interface UAPermissionDelegate { - checkPermissionStatusWithCompletionHandler(completionHandler: (p1: UAPermissionStatus) => void): void; +interface UALegacySDKModule extends NSObjectProtocol { + actions?(): NSArray; - requestPermissionWithCompletionHandler(completionHandler: (p1: UAPermissionStatus) => void): void; + components?(): NSArray; } -declare var UAPermissionDelegate: { - prototype: UAPermissionDelegate; +declare var UALegacySDKModule: { + prototype: UALegacySDKModule; + + loadWithDependencies(dependencies: NSDictionary): UALegacySDKModule; }; -declare const enum UAPermissionStatus { - NotDetermined = 0, +declare var UALineSpacingKey: string; - Granted = 1, +declare class UALocaleManager extends NSObject implements UALocaleManagerProtocol { + static alloc(): UALocaleManager; // inherited from NSObject - Denied = 2, + static new(): UALocaleManager; // inherited from NSObject + + currentLocale: NSLocale; + + static readonly localeEventKey: string; + + static readonly localeUpdatedEvent: string; + + clearLocale(): void; } -declare class UAPermissionsManager extends NSObject { - static alloc(): UAPermissionsManager; // inherited from NSObject +interface UALocaleManagerProtocol { + currentLocale: NSLocale; - static new(): UAPermissionsManager; // inherited from NSObject + clearLocale(): void; +} +declare var UALocaleManagerProtocol: { + prototype: UALocaleManagerProtocol; +}; + +declare class UALocalizationUtils extends NSObject { + static alloc(): UALocalizationUtils; // inherited from NSObject - addAirshipEnablerWithPermissionOnEnable(permission: UAPermission, onEnable: () => void): void; + static localizedStringExistsInTableModuleBundle(string: string, table: string, moduleBundle: NSBundle): boolean; - checkPermissionStatusCompletionHandler(permission: UAPermission, completionHandler: (p1: UAPermissionStatus) => void): void; + static localizedStringExistsInTableModuleBundleFallbackLocale(string: string, table: string, moduleBundle: NSBundle, fallbackLocale: string): boolean; - permissionStatusMapWithCompletionHandler(completionHandler: (p1: NSDictionary) => void): void; + static localizedStringWithTableModuleBundle(string: string, table: string, moduleBundle: NSBundle): string; - requestPermission(permission: UAPermission): void; + static localizedStringWithTableModuleBundleDefaultValue(string: string, table: string, moduleBundle: NSBundle, defaultValue: string): string; - requestPermissionCompletionHandler(permission: UAPermission, completionHandler: (p1: UAPermissionStatus) => void): void; + static localizedStringWithTableModuleBundleFallbackLocale(string: string, table: string, moduleBundle: NSBundle, fallbackLocale: string): string; - requestPermissionEnableAirshipUsageOnGrantCompletionHandler(permission: UAPermission, enableAirshipUsageOnGrant: boolean, completionHandler: (p1: UAPermissionStatus) => void): void; + static new(): UALocalizationUtils; // inherited from NSObject +} + +declare const enum UALogLevel { + Undefined = -1, + + None = 0, + + Error = 1, + + Warn = 2, - setDelegatePermission(delegate: UAPermissionDelegate, permission: UAPermission): void; + Info = 3, + + Debug = 4, + + Verbose = 5, } -declare class UAPreferenceAlertItem extends NSObject implements UAPreferenceItem { - static alloc(): UAPreferenceAlertItem; // inherited from NSObject +declare class UAMediaEventTemplate extends NSObject { + static alloc(): UAMediaEventTemplate; // inherited from NSObject + + static browsedTemplate(): UAMediaEventTemplate; - static new(): UAPreferenceAlertItem; // inherited from NSObject + static consumedTemplate(): UAMediaEventTemplate; - readonly button: UAPreferenceAlertItemButton; + static consumedTemplateWithValue(value: number): UAMediaEventTemplate; - conditions: NSArray; + static consumedTemplateWithValueFromString(valueString: string): UAMediaEventTemplate; - readonly display: UAPreferenceCommonDisplay; // inherited from UAPreferenceItem + static new(): UAMediaEventTemplate; // inherited from NSObject - readonly identifier: string; // inherited from UAPreferenceItem + static sharedTemplate(): UAMediaEventTemplate; - readonly itemType: UAPreferenceItemType; // inherited from UAPreferenceItem + static sharedTemplateWithSourceWithMedium(source: string, medium: string): UAMediaEventTemplate; - readonly type: string; // inherited from UAPreferenceItem -} + static starredTemplate(): UAMediaEventTemplate; -declare class UAPreferenceAlertItemButton extends NSObject { - static alloc(): UAPreferenceAlertItemButton; // inherited from NSObject + author: string; - static new(): UAPreferenceAlertItemButton; // inherited from NSObject + category: string; - readonly actions: any; + eventDescription: string; - readonly contentDescription: string; + identifier: string; - readonly text: string; + isFeature: boolean; + + publishedDate: string; + + type: string; + + createEvent(): UACustomEvent; } -declare class UAPreferenceCenter extends NSObject implements UAComponent { - static alloc(): UAPreferenceCenter; // inherited from NSObject +declare class UAMessageCenter extends NSObject implements UAComponent, UAPushableComponent { + static alloc(): UAMessageCenter; // inherited from NSObject - static new(): UAPreferenceCenter; // inherited from NSObject + static new(): UAMessageCenter; // inherited from NSObject - openDelegate: UAPreferenceCenterOpenDelegate; + displayDelegate: UAMessageCenterDisplayDelegate; - style: UAPreferenceCenterStyle; + inbox: UAMessageCenterInbox; - static readonly shared: UAPreferenceCenter; + static readonly shared: UAMessageCenter; componentEnabled: boolean; // inherited from UAComponent @@ -6357,262 +3642,233 @@ declare class UAPreferenceCenter extends NSObject implements UAComponent { class(): typeof NSObject; - configForPreferenceCenterIDCompletionHandler(preferenceCenterID: string, completionHandler: (p1: UAPreferenceCenterConfig) => void): UADisposable; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; deepLink(deepLink: NSURL): boolean; + dismiss(): void; + + display(): void; + + displayWithMessageID(messageID: string): void; + isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; - jsonConfigForPreferenceCenterIDCompletionHandler(preferenceCenterID: string, completionHandler: (p1: NSDictionary) => void): UADisposable; - - openPreferenceCenter(preferenceCenterID: string): void; - performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; + presentationOptionsForNotificationDefaultPresentationOptions(notification: UNNotification, options: UNNotificationPresentationOptions): UNNotificationPresentationOptions; - self(): this; -} + receivedNotificationResponseCompletionHandler(response: UNNotificationResponse, completionHandler: () => void): void; -declare class UAPreferenceCenterAlertCell extends UITableViewCell { - static alloc(): UAPreferenceCenterAlertCell; // inherited from NSObject + receivedRemoteNotificationCompletionHandler(notification: NSDictionary, completionHandler: (p1: UIBackgroundFetchResult) => void): void; - static appearance(): UAPreferenceCenterAlertCell; // inherited from UIAppearance + respondsToSelector(aSelector: string): boolean; - static appearanceForTraitCollection(trait: UITraitCollection): UAPreferenceCenterAlertCell; // inherited from UIAppearance + retainCount(): number; - static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UAPreferenceCenterAlertCell; // inherited from UIAppearance + self(): this; - static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | (typeof NSObject)[]): UAPreferenceCenterAlertCell; // inherited from UIAppearance + setThemeFromPlistError(plist: string): boolean; +} - static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UAPreferenceCenterAlertCell; // inherited from UIAppearance +declare class UAMessageCenterController extends NSObject { + static alloc(): UAMessageCenterController; // inherited from NSObject - static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | (typeof NSObject)[]): UAPreferenceCenterAlertCell; // inherited from UIAppearance + static new(): UAMessageCenterController; // inherited from NSObject - static new(): UAPreferenceCenterAlertCell; // inherited from NSObject + navigateWithMessageID(messageID: string): void; } -declare class UAPreferenceCenterCell extends UITableViewCell { - static alloc(): UAPreferenceCenterCell; // inherited from NSObject +interface UAMessageCenterDisplayDelegate { + dismissMessageCenter(): void; - static appearance(): UAPreferenceCenterCell; // inherited from UIAppearance + displayMessageCenter(): void; - static appearanceForTraitCollection(trait: UITraitCollection): UAPreferenceCenterCell; // inherited from UIAppearance - - static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UAPreferenceCenterCell; // inherited from UIAppearance + displayMessageCenterForMessageID(messageID: string): void; +} +declare var UAMessageCenterDisplayDelegate: { + prototype: UAMessageCenterDisplayDelegate; +}; - static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | (typeof NSObject)[]): UAPreferenceCenterCell; // inherited from UIAppearance +declare class UAMessageCenterInbox extends NSObject { + static alloc(): UAMessageCenterInbox; // inherited from NSObject - static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UAPreferenceCenterCell; // inherited from UIAppearance + static new(): UAMessageCenterInbox; // inherited from NSObject - static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | (typeof NSObject)[]): UAPreferenceCenterCell; // inherited from UIAppearance + deleteWithMessageIDsCompletionHandler(messageIDs: NSArray | string[], completionHandler: () => void): void; - static new(): UAPreferenceCenterCell; // inherited from NSObject -} + deleteWithMessagesCompletionHandler(messages: NSArray | UAMessageCenterMessage[], completionHandler: () => void): void; -declare class UAPreferenceCenterCheckboxCell extends UITableViewCell { - static alloc(): UAPreferenceCenterCheckboxCell; // inherited from NSObject + getMessagesWithCompletionHandler(completionHandler: (p1: NSArray) => void): void; - static appearance(): UAPreferenceCenterCheckboxCell; // inherited from UIAppearance + getUnreadCountWithCompletionHandler(completionHandler: (p1: number) => void): void; - static appearanceForTraitCollection(trait: UITraitCollection): UAPreferenceCenterCheckboxCell; // inherited from UIAppearance + getUserWithCompletionHandler(completionHandler: (p1: UAMessageCenterUser) => void): void; - static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): UAPreferenceCenterCheckboxCell; // inherited from UIAppearance + markReadWithMessageIDsCompletionHandler(messageIDs: NSArray | string[], completionHandler: () => void): void; - static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | (typeof NSObject)[]): UAPreferenceCenterCheckboxCell; // inherited from UIAppearance + markReadWithMessagesCompletionHandler(messages: NSArray | UAMessageCenterMessage[], completionHandler: () => void): void; - static appearanceWhenContainedIn(ContainerClass: typeof NSObject): UAPreferenceCenterCheckboxCell; // inherited from UIAppearance + messageForBodyURLCompletionHandler(bodyURL: NSURL, completionHandler: (p1: UAMessageCenterMessage) => void): void; - static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | (typeof NSObject)[]): UAPreferenceCenterCheckboxCell; // inherited from UIAppearance + messageForIDCompletionHandler(messageID: string, completionHandler: (p1: UAMessageCenterMessage) => void): void; - static new(): UAPreferenceCenterCheckboxCell; // inherited from NSObject + refreshMessagesWithCompletionHandler(completionHandler: (p1: boolean) => void): void; } -declare class UAPreferenceCenterConfig extends NSObject { - static alloc(): UAPreferenceCenterConfig; // inherited from NSObject +interface UAMessageCenterInboxBaseProtocol { + deleteWithMessageIDsCompletionHandler(messageIDs: NSArray | string[], completionHandler: () => void): void; - static new(): UAPreferenceCenterConfig; // inherited from NSObject + deleteWithMessagesCompletionHandler(messages: NSArray | UAMessageCenterMessage[], completionHandler: () => void): void; - readonly display: UAPreferenceCommonDisplay; + getMessagesWithCompletionHandler(completionHandler: (p1: NSArray) => void): void; - readonly identifier: string; + getUnreadCountWithCompletionHandler(completionHandler: (p1: number) => void): void; - readonly options: UAPreferenceCenterConfigOptions; + getUserWithCompletionHandler(completionHandler: (p1: UAMessageCenterUser) => void): void; - sections: NSArray; -} + markReadWithMessageIDsCompletionHandler(messageIDs: NSArray | string[], completionHandler: () => void): void; -declare class UAPreferenceCenterConfigOptions extends NSObject { - static alloc(): UAPreferenceCenterConfigOptions; // inherited from NSObject + markReadWithMessagesCompletionHandler(messages: NSArray | UAMessageCenterMessage[], completionHandler: () => void): void; - static new(): UAPreferenceCenterConfigOptions; // inherited from NSObject + messageForBodyURLCompletionHandler(bodyURL: NSURL, completionHandler: (p1: UAMessageCenterMessage) => void): void; - readonly mergeChannelDataToContact: boolean; -} + messageForIDCompletionHandler(messageID: string, completionHandler: (p1: UAMessageCenterMessage) => void): void; -interface UAPreferenceCenterOpenDelegate { - openPreferenceCenter(preferenceCenterID: string): boolean; + refreshMessagesWithCompletionHandler(completionHandler: (p1: boolean) => void): void; } -declare var UAPreferenceCenterOpenDelegate: { - prototype: UAPreferenceCenterOpenDelegate; +declare var UAMessageCenterInboxBaseProtocol: { + prototype: UAMessageCenterInboxBaseProtocol; }; -declare class UAPreferenceCenterResources extends NSObject { - static alloc(): UAPreferenceCenterResources; // inherited from NSObject - - static bundle(): NSBundle; - - static new(): UAPreferenceCenterResources; // inherited from NSObject -} - -declare class UAPreferenceCenterSDKModule extends NSObject implements UASDKModule { - static alloc(): UAPreferenceCenterSDKModule; // inherited from NSObject - - static loadWithDependencies(dependencies: NSDictionary): UASDKModule; - - static new(): UAPreferenceCenterSDKModule; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol +declare class UAMessageCenterMessage extends NSObject { + static alloc(): UAMessageCenterMessage; // inherited from NSObject - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - actionsPlist(): string; + static new(): UAMessageCenterMessage; // inherited from NSObject - class(): typeof NSObject; - - components(): NSArray; + static parseMessageIDWithUserInfo(userInfo: NSDictionary): string; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + readonly bodyURL: NSURL; - isEqual(object: any): boolean; + readonly expirationDate: Date; - isKindOfClass(aClass: typeof NSObject): boolean; + readonly extra: NSDictionary; - isMemberOfClass(aClass: typeof NSObject): boolean; + readonly id: string; - performSelector(aSelector: string): any; + readonly isExpired: boolean; - performSelectorWithObject(aSelector: string, object: any): any; + readonly listIcon: string; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + readonly sentDate: Date; - respondsToSelector(aSelector: string): boolean; + readonly subtitle: string; - retainCount(): number; + readonly title: string; - self(): this; + readonly unread: boolean; } -declare class UAPreferenceCenterStyle extends NSObject { - static alloc(): UAPreferenceCenterStyle; // inherited from NSObject - - static new(): UAPreferenceCenterStyle; // inherited from NSObject - - alertButtonBackgroundColor: UIColor; - - alertButtonLabelColor: UIColor; - - alertButtonLabelFont: UIFont; - - alertSubtitleColor: UIColor; +declare class UAMessageCenterNativeBridgeExtension extends NSObject implements UANativeBridgeExtensionDelegate { + static alloc(): UAMessageCenterNativeBridgeExtension; // inherited from NSObject - alertSubtitleFont: UIFont; + static new(): UAMessageCenterNativeBridgeExtension; // inherited from NSObject - alertTitleColor: UIColor; + constructor(o: { message: UAMessageCenterMessage; user: UAMessageCenterUser }); - alertTitleFont: UIFont; + actionsMetadataForCommandWebView(command: UAJavaScriptCommand, webView: WKWebView): NSDictionary; - backgroundColor: UIColor; + extendJavaScriptEnvironmentWebViewCompletionHandler(js: UAJavaScriptEnvironmentProtocol, webView: WKWebView, completionHandler: () => void): void; - navigationBarColor: UIColor; + initWithMessageUser(message: UAMessageCenterMessage, user: UAMessageCenterUser): this; +} - preferenceChipBorderColor: UIColor; +declare class UAMessageCenterSDKModule extends NSObject { + static alloc(): UAMessageCenterSDKModule; // inherited from NSObject - preferenceChipCheckmarkBackgroundColor: UIColor; + static new(): UAMessageCenterSDKModule; // inherited from NSObject +} - preferenceChipCheckmarkCheckedBackgroundColor: UIColor; +declare class UAMessageCenterUser extends NSObject { + static alloc(): UAMessageCenterUser; // inherited from NSObject - preferenceChipCheckmarkColor: UIColor; + static new(): UAMessageCenterUser; // inherited from NSObject - preferenceChipTextColor: UIColor; + readonly basicAuthString: string; - preferenceChipTextFont: UIFont; + readonly password: string; - preferenceSubtitleTextColor: UIColor; + readonly username: string; +} - preferenceSubtitleTextFont: UIFont; +declare class UAMessageCenterViewController extends NSObject { + static alloc(): UAMessageCenterViewController; // inherited from NSObject - preferenceTextColor: UIColor; + static makeWithThemePlistControllerErrorDismissAction(themePlist: string, controller: UAMessageCenterController, error: interop.Pointer | interop.Reference, dismissAction: () => void): UIViewController; - preferenceTextFont: UIFont; + static new(): UAMessageCenterViewController; // inherited from NSObject +} - preferenceTitleTextColor: UIColor; +declare var UAModalAdditionalPaddingKey: string; - preferenceTitleTextFont: UIFont; +declare var UAModalAspectRatioKey: string; - sectionBreakBackgroundColor: UIColor; +declare var UAModalBodyStyleKey: string; - sectionBreakTextColor: UIColor; +declare var UAModalButtonStyleKey: string; - sectionBreakTextFont: UIFont; +declare var UAModalDismissIconResourceKey: string; - sectionSubtitleTextColor: UIColor; +declare var UAModalHeaderStyleKey: string; - sectionSubtitleTextFont: UIFont; +declare var UAModalMaxHeightKey: string; - sectionTextColor: UIColor; +declare var UAModalMaxWidthKey: string; - sectionTextFont: UIFont; +declare var UAModalMediaStyleKey: string; - sectionTitleTextColor: UIColor; +declare var UAModalStyleFileName: string; - sectionTitleTextFont: UIFont; +declare var UAModalTextStyleKey: string; - subtitle: string; +declare class UANSArrayValueTransformer extends NSValueTransformer { + static alloc(): UANSArrayValueTransformer; // inherited from NSObject - subtitleColor: UIColor; + static new(): UANSArrayValueTransformer; // inherited from NSObject +} - subtitleFont: UIFont; +declare class UANSDictionaryValueTransformer extends NSValueTransformer { + static alloc(): UANSDictionaryValueTransformer; // inherited from NSObject - switchThumbTintColor: UIColor; + static new(): UANSDictionaryValueTransformer; // inherited from NSObject +} - switchTintColor: UIColor; +declare class UANSURLValueTransformer extends NSValueTransformer { + static alloc(): UANSURLValueTransformer; // inherited from NSObject - tintColor: UIColor; + static new(): UANSURLValueTransformer; // inherited from NSObject +} - title: string; +declare class UANativeBridge extends NSObject implements WKNavigationDelegate { + static alloc(): UANativeBridge; // inherited from NSObject - titleColor: UIColor; + static new(): UANativeBridge; // inherited from NSObject - titleFont: UIFont; -} + forwardNavigationDelegate: UANavigationDelegate; -declare class UAPreferenceCenterViewController extends UIViewController implements UITableViewDataSource, UITableViewDelegate { - static alloc(): UAPreferenceCenterViewController; // inherited from NSObject + javaScriptCommandDelegate: UAJavaScriptCommandDelegate; - static new(): UAPreferenceCenterViewController; // inherited from NSObject + nativeBridgeDelegate: UANativeBridgeDelegate; - style: UAPreferenceCenterStyle; + nativeBridgeExtensionDelegate: UANativeBridgeExtensionDelegate; readonly debugDescription: string; // inherited from NSObjectProtocol @@ -6626,24 +3882,16 @@ declare class UAPreferenceCenterViewController extends UIViewController implemen readonly; // inherited from NSObjectProtocol - constructor(o: { identifier: string }); - class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; - indexPathForPreferredFocusedViewInTableView(tableView: UITableView): NSIndexPath; - - initWithIdentifier(identifier: string): this; - isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; - numberOfSectionsInTableView(tableView: UITableView): number; - performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; @@ -6654,336 +3902,354 @@ declare class UAPreferenceCenterViewController extends UIViewController implemen retainCount(): number; - scrollViewDidChangeAdjustedContentInset(scrollView: UIScrollView): void; - - scrollViewDidEndDecelerating(scrollView: UIScrollView): void; - - scrollViewDidEndDraggingWillDecelerate(scrollView: UIScrollView, decelerate: boolean): void; + self(): this; - scrollViewDidEndScrollingAnimation(scrollView: UIScrollView): void; + webViewAuthenticationChallengeShouldAllowDeprecatedTLS(webView: WKWebView, challenge: NSURLAuthenticationChallenge, decisionHandler: (p1: boolean) => void): void; - scrollViewDidEndZoomingWithViewAtScale(scrollView: UIScrollView, view: UIView, scale: number): void; + webViewDecidePolicyForNavigationActionDecisionHandler(webView: WKWebView, navigationAction: WKNavigationAction, decisionHandler: (p1: WKNavigationActionPolicy) => void): void; - scrollViewDidScroll(scrollView: UIScrollView): void; + webViewDecidePolicyForNavigationActionPreferencesDecisionHandler(webView: WKWebView, navigationAction: WKNavigationAction, preferences: WKWebpagePreferences, decisionHandler: (p1: WKNavigationActionPolicy, p2: WKWebpagePreferences) => void): void; - scrollViewDidScrollToTop(scrollView: UIScrollView): void; + webViewDecidePolicyForNavigationResponseDecisionHandler(webView: WKWebView, navigationResponse: WKNavigationResponse, decisionHandler: (p1: WKNavigationResponsePolicy) => void): void; - scrollViewDidZoom(scrollView: UIScrollView): void; + webViewDidCommitNavigation(webView: WKWebView, navigation: WKNavigation): void; - scrollViewShouldScrollToTop(scrollView: UIScrollView): boolean; + webViewDidFailNavigationWithError(webView: WKWebView, navigation: WKNavigation, error: NSError): void; - scrollViewWillBeginDecelerating(scrollView: UIScrollView): void; + webViewDidFailProvisionalNavigationWithError(webView: WKWebView, navigation: WKNavigation, error: NSError): void; - scrollViewWillBeginDragging(scrollView: UIScrollView): void; + webViewDidFinishNavigation(webView: WKWebView, navigation: WKNavigation): void; - scrollViewWillBeginZoomingWithView(scrollView: UIScrollView, view: UIView): void; + webViewDidReceiveAuthenticationChallengeCompletionHandler(webView: WKWebView, challenge: NSURLAuthenticationChallenge, completionHandler: (p1: NSURLSessionAuthChallengeDisposition, p2: NSURLCredential) => void): void; - scrollViewWillEndDraggingWithVelocityTargetContentOffset(scrollView: UIScrollView, velocity: CGPoint, targetContentOffset: interop.Pointer | interop.Reference): void; + webViewDidReceiveServerRedirectForProvisionalNavigation(webView: WKWebView, navigation: WKNavigation): void; - sectionIndexTitlesForTableView(tableView: UITableView): NSArray; + webViewDidStartProvisionalNavigation(webView: WKWebView, navigation: WKNavigation): void; - self(): this; + webViewNavigationActionDidBecomeDownload(webView: WKWebView, navigationAction: WKNavigationAction, download: WKDownload): void; - tableViewAccessoryButtonTappedForRowWithIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + webViewNavigationResponseDidBecomeDownload(webView: WKWebView, navigationResponse: WKNavigationResponse, download: WKDownload): void; - tableViewAccessoryTypeForRowWithIndexPath(tableView: UITableView, indexPath: NSIndexPath): UITableViewCellAccessoryType; + webViewWebContentProcessDidTerminate(webView: WKWebView): void; +} - tableViewCanEditRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; +interface UANativeBridgeDelegate { + close(): void; +} +declare var UANativeBridgeDelegate: { + prototype: UANativeBridgeDelegate; +}; - tableViewCanFocusRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; +interface UANativeBridgeExtensionDelegate { + actionsMetadataForCommandWebView(command: UAJavaScriptCommand, webView: WKWebView): NSDictionary; - tableViewCanMoveRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + extendJavaScriptEnvironmentWebViewCompletionHandler(js: UAJavaScriptEnvironmentProtocol, webView: WKWebView, completionHandler: () => void): void; +} +declare var UANativeBridgeExtensionDelegate: { + prototype: UANativeBridgeExtensionDelegate; +}; - tableViewCanPerformActionForRowAtIndexPathWithSender(tableView: UITableView, action: string, indexPath: NSIndexPath, sender: any): boolean; +interface UANavigationDelegate extends WKNavigationDelegate { + closeWindow?(animated: boolean): void; +} +declare var UANavigationDelegate: { + prototype: UANavigationDelegate; +}; - tableViewCanPerformPrimaryActionForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; +declare class UANetworkMonitor extends NSObject { + static alloc(): UANetworkMonitor; // inherited from NSObject - tableViewCellForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): UITableViewCell; + static new(): UANetworkMonitor; // inherited from NSObject - tableViewCommitEditingStyleForRowAtIndexPath(tableView: UITableView, editingStyle: UITableViewCellEditingStyle, indexPath: NSIndexPath): void; + connectionUpdates: (p1: boolean) => void; - tableViewContextMenuConfigurationForRowAtIndexPathPoint(tableView: UITableView, indexPath: NSIndexPath, point: CGPoint): UIContextMenuConfiguration; + readonly isConnected: boolean; +} - tableViewDidBeginMultipleSelectionInteractionAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; +declare class UANotificationCategories extends NSObject { + static alloc(): UANotificationCategories; // inherited from NSObject - tableViewDidDeselectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + static createCategoriesFromFile(path: string): NSSet; - tableViewDidEndDisplayingCellForRowAtIndexPath(tableView: UITableView, cell: UITableViewCell, indexPath: NSIndexPath): void; + static createCategoryActions(categoryId: string, actionDefinitions: NSArray> | NSDictionary[]): UNNotificationCategory; - tableViewDidEndDisplayingFooterViewForSection(tableView: UITableView, view: UIView, section: number): void; + static createCategoryActionsHiddenPreviewsBodyPlaceholder(categoryId: string, actionDefinitions: NSArray> | NSDictionary[], hiddenPreviewsBodyPlaceholder: string): UNNotificationCategory; - tableViewDidEndDisplayingHeaderViewForSection(tableView: UITableView, view: UIView, section: number): void; + static defaultCategories(): NSSet; - tableViewDidEndEditingRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + static defaultCategoriesWithRequireAuth(requireAuth: boolean): NSSet; - tableViewDidEndMultipleSelectionInteraction(tableView: UITableView): void; + static new(): UANotificationCategories; // inherited from NSObject +} - tableViewDidHighlightRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; +declare const enum UANotificationOptInConditionStatus { + OptedIn = 0, - tableViewDidSelectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + OptedOut = 1, +} - tableViewDidUnhighlightRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; +declare const enum UANotificationOptions { + None = 0, - tableViewDidUpdateFocusInContextWithAnimationCoordinator(tableView: UITableView, context: UITableViewFocusUpdateContext, coordinator: UIFocusAnimationCoordinator): void; + Badge = 1, - tableViewEditActionsForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSArray; + Sound = 2, - tableViewEditingStyleForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): UITableViewCellEditingStyle; + Alert = 4, - tableViewEstimatedHeightForFooterInSection(tableView: UITableView, section: number): number; + CarPlay = 8, - tableViewEstimatedHeightForHeaderInSection(tableView: UITableView, section: number): number; + CriticalAlert = 16, - tableViewEstimatedHeightForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): number; + ProvidesAppNotificationSettings = 32, - tableViewHeightForFooterInSection(tableView: UITableView, section: number): number; + Provisional = 64, - tableViewHeightForHeaderInSection(tableView: UITableView, section: number): number; + Announcement = 128, +} - tableViewHeightForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): number; +declare class UAOpenRegistrationOptions extends NSObject { + static alloc(): UAOpenRegistrationOptions; // inherited from NSObject - tableViewIndentationLevelForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): number; + static new(): UAOpenRegistrationOptions; // inherited from NSObject - tableViewLeadingSwipeActionsConfigurationForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): UISwipeActionsConfiguration; + static optInPlatformNameIdentifiers(platformName: string, identifiers: NSDictionary): UAOpenRegistrationOptions; +} - tableViewMoveRowAtIndexPathToIndexPath(tableView: UITableView, sourceIndexPath: NSIndexPath, destinationIndexPath: NSIndexPath): void; +declare class UAPadding extends NSObject { + static alloc(): UAPadding; // inherited from NSObject - tableViewNumberOfRowsInSection(tableView: UITableView, section: number): number; + static new(): UAPadding; // inherited from NSObject - tableViewPerformActionForRowAtIndexPathWithSender(tableView: UITableView, action: string, indexPath: NSIndexPath, sender: any): void; + static paddingWithDictionary(paddingDict: NSDictionary): UAPadding; - tableViewPerformPrimaryActionForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; + static paddingWithTopBottomLeadingTrailing(top: number, bottom: number, leading: number, trailing: number): UAPadding; - tableViewPreviewForDismissingContextMenuWithConfiguration(tableView: UITableView, configuration: UIContextMenuConfiguration): UITargetedPreview; + bottom: number; - tableViewPreviewForHighlightingContextMenuWithConfiguration(tableView: UITableView, configuration: UIContextMenuConfiguration): UITargetedPreview; + leading: number; - tableViewSectionForSectionIndexTitleAtIndex(tableView: UITableView, title: string, index: number): number; + top: number; - tableViewSelectionFollowsFocusForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + trailing: number; - tableViewShouldBeginMultipleSelectionInteractionAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + constructor(o: { top: number; bottom: number; leading: number; trailing: number }); - tableViewShouldHighlightRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + initWithTopBottomLeadingTrailing(top: number, bottom: number, leading: number, trailing: number): this; +} - tableViewShouldIndentWhileEditingRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; +declare const enum UAPermission { + DisplayNotifications = 0, - tableViewShouldShowMenuForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): boolean; + Location = 1, +} - tableViewShouldSpringLoadRowAtIndexPathWithContext(tableView: UITableView, indexPath: NSIndexPath, context: UISpringLoadedInteractionContext): boolean; +declare const enum UAPermissionStatus { + NotDetermined = 0, - tableViewShouldUpdateFocusInContext(tableView: UITableView, context: UITableViewFocusUpdateContext): boolean; + Granted = 1, - tableViewTargetIndexPathForMoveFromRowAtIndexPathToProposedIndexPath(tableView: UITableView, sourceIndexPath: NSIndexPath, proposedDestinationIndexPath: NSIndexPath): NSIndexPath; + Denied = 2, +} - tableViewTitleForDeleteConfirmationButtonForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): string; +declare class UAPermissionsManager extends NSObject { + static alloc(): UAPermissionsManager; // inherited from NSObject - tableViewTitleForFooterInSection(tableView: UITableView, section: number): string; + static new(): UAPermissionsManager; // inherited from NSObject - tableViewTitleForHeaderInSection(tableView: UITableView, section: number): string; + permissionStatusMapWithCompletionHandler(completionHandler: (p1: NSDictionary) => void): void; - tableViewTrailingSwipeActionsConfigurationForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): UISwipeActionsConfiguration; + requestPermissionCompletionHandler(permission: UAPermission, completionHandler: (p1: UAPermissionStatus) => void): void; - tableViewViewForFooterInSection(tableView: UITableView, section: number): UIView; + requestPermissionEnableAirshipUsageOnGrantCompletionHandler(permission: UAPermission, enableAirshipUsageOnGrant: boolean, completionHandler: (p1: UAPermissionStatus) => void): void; - tableViewViewForHeaderInSection(tableView: UITableView, section: number): UIView; + setDelegatePermission(delegate: UAAirshipPermissionDelegate, permission: UAPermission): void; +} - tableViewWillBeginEditingRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): void; +declare class UAPreferenceCenter extends NSObject implements UAComponent { + static alloc(): UAPreferenceCenter; // inherited from NSObject - tableViewWillDeselectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath; + static new(): UAPreferenceCenter; // inherited from NSObject - tableViewWillDisplayCellForRowAtIndexPath(tableView: UITableView, cell: UITableViewCell, indexPath: NSIndexPath): void; + openDelegate: UAPreferenceCenterOpenDelegate; - tableViewWillDisplayContextMenuWithConfigurationAnimator(tableView: UITableView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating): void; + static readonly shared: UAPreferenceCenter; - tableViewWillDisplayFooterViewForSection(tableView: UITableView, view: UIView, section: number): void; + componentEnabled: boolean; // inherited from UAComponent - tableViewWillDisplayHeaderViewForSection(tableView: UITableView, view: UIView, section: number): void; + readonly debugDescription: string; // inherited from NSObjectProtocol - tableViewWillEndContextMenuInteractionWithConfigurationAnimator(tableView: UITableView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating): void; + readonly description: string; // inherited from NSObjectProtocol - tableViewWillPerformPreviewActionForMenuWithConfigurationAnimator(tableView: UITableView, configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating): void; + readonly hash: number; // inherited from NSObjectProtocol - tableViewWillSelectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath; + readonly isProxy: boolean; // inherited from NSObjectProtocol - viewForZoomingInScrollView(scrollView: UIScrollView): UIView; -} + readonly superclass: typeof NSObject; // inherited from NSObjectProtocol -declare class UAPreferenceChannelSubscriptionItem extends NSObject implements UAPreferenceItem { - static alloc(): UAPreferenceChannelSubscriptionItem; // inherited from NSObject + readonly; // inherited from NSObjectProtocol - static new(): UAPreferenceChannelSubscriptionItem; // inherited from NSObject + airshipReady(): void; - conditions: NSArray; + applyRemoteConfig(config: any): void; - readonly subscriptionID: string; + class(): typeof NSObject; - readonly display: UAPreferenceCommonDisplay; // inherited from UAPreferenceItem + configWithPreferenceCenterIDCompletionHandler(preferenceCenterID: string, completionHandler: (p1: UAPreferenceCenterConfig, p2: NSError) => void): void; - readonly identifier: string; // inherited from UAPreferenceItem + conformsToProtocol(aProtocol: any /* Protocol */): boolean; - readonly itemType: UAPreferenceItemType; // inherited from UAPreferenceItem + deepLink(deepLink: NSURL): boolean; - readonly type: string; // inherited from UAPreferenceItem -} + isEqual(object: any): boolean; -declare class UAPreferenceCommonDisplay extends NSObject { - static alloc(): UAPreferenceCommonDisplay; // inherited from NSObject + isKindOfClass(aClass: typeof NSObject): boolean; - static new(): UAPreferenceCommonDisplay; // inherited from NSObject + isMemberOfClass(aClass: typeof NSObject): boolean; - readonly iconURL: string; + jsonConfigWithPreferenceCenterIDCompletionHandler(preferenceCenterID: string, completionHandler: (p1: NSData, p2: NSError) => void): void; - readonly subtitle: string; + openPreferenceCenter(preferenceCenterID: string): void; - readonly title: string; -} + performSelector(aSelector: string): any; -declare class UAPreferenceCommonSection extends NSObject implements UAPreferenceSection { - static alloc(): UAPreferenceCommonSection; // inherited from NSObject + performSelectorWithObject(aSelector: string, object: any): any; - static new(): UAPreferenceCommonSection; // inherited from NSObject + performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - conditions: NSArray; + respondsToSelector(aSelector: string): boolean; - items: NSArray; + retainCount(): number; - readonly display: UAPreferenceCommonDisplay; // inherited from UAPreferenceSection + self(): this; - readonly identifier: string; // inherited from UAPreferenceSection + setThemeFromPlistError(plist: string): boolean; +} - readonly sectionType: UAPreferenceSectionType; // inherited from UAPreferenceSection +declare class UAPreferenceCenterConfig extends NSObject { + static alloc(): UAPreferenceCenterConfig; // inherited from NSObject - readonly type: string; // inherited from UAPreferenceSection -} + static new(): UAPreferenceCenterConfig; // inherited from NSObject -declare class UAPreferenceComponent extends NSObject { - static alloc(): UAPreferenceComponent; // inherited from NSObject + readonly display: UAPreferenceConfigCommonDisplay; - static new(): UAPreferenceComponent; // inherited from NSObject + readonly identifier: string; - readonly display: UAPreferenceCommonDisplay; + readonly options: UAPreferenceCenterConfigOptions; - readonly scopes: UAChannelScopes; + readonly sections: NSArray; } -declare const enum UAPreferenceConditionType { - NotificationOptIn = 0, -} +declare class UAPreferenceCenterConfigAlert extends NSObject implements UAPreferenceCenterConfigItem { + static alloc(): UAPreferenceCenterConfigAlert; // inherited from NSObject -interface UAPreferenceConditions { - conditionType: UAPreferenceConditionType; + static new(): UAPreferenceCenterConfigAlert; // inherited from NSObject - type: string; -} -declare var UAPreferenceConditions: { - prototype: UAPreferenceConditions; -}; + readonly button: UAPreferenceCenterConfigAlertButton; -declare class UAPreferenceContactSubscriptionGroupItem extends NSObject implements UAPreferenceItem { - static alloc(): UAPreferenceContactSubscriptionGroupItem; // inherited from NSObject + readonly conditions: NSArray; - static new(): UAPreferenceContactSubscriptionGroupItem; // inherited from NSObject + readonly display: UAPreferenceConfigAlertDisplay; - readonly components: NSArray; + readonly identifier: string; // inherited from UAPreferenceCenterConfigItem - conditions: NSArray; + readonly type: UAPreferenceCenterConfigItemType; // inherited from UAPreferenceCenterConfigItem +} - readonly subscriptionID: string; +declare class UAPreferenceCenterConfigAlertButton extends NSObject { + static alloc(): UAPreferenceCenterConfigAlertButton; // inherited from NSObject - readonly display: UAPreferenceCommonDisplay; // inherited from UAPreferenceItem + static new(): UAPreferenceCenterConfigAlertButton; // inherited from NSObject - readonly identifier: string; // inherited from UAPreferenceItem + readonly actions: any; - readonly itemType: UAPreferenceItemType; // inherited from UAPreferenceItem + readonly contentDescription: string; - readonly type: string; // inherited from UAPreferenceItem + readonly text: string; } -declare class UAPreferenceContactSubscriptionItem extends NSObject implements UAPreferenceItem { - static alloc(): UAPreferenceContactSubscriptionItem; // inherited from NSObject +declare class UAPreferenceCenterConfigChannelSubscription extends NSObject implements UAPreferenceCenterConfigItem { + static alloc(): UAPreferenceCenterConfigChannelSubscription; // inherited from NSObject - static new(): UAPreferenceContactSubscriptionItem; // inherited from NSObject + static new(): UAPreferenceCenterConfigChannelSubscription; // inherited from NSObject - conditions: NSArray; + readonly conditions: NSArray; - readonly scopes: UAChannelScopes; + readonly display: UAPreferenceConfigCommonDisplay; readonly subscriptionID: string; - readonly display: UAPreferenceCommonDisplay; // inherited from UAPreferenceItem + readonly identifier: string; // inherited from UAPreferenceCenterConfigItem - readonly identifier: string; // inherited from UAPreferenceItem - - readonly itemType: UAPreferenceItemType; // inherited from UAPreferenceItem - - readonly type: string; // inherited from UAPreferenceItem + readonly type: UAPreferenceCenterConfigItemType; // inherited from UAPreferenceCenterConfigItem } -declare class UAPreferenceDataStore extends NSObject { - static alloc(): UAPreferenceDataStore; // inherited from NSObject - - static new(): UAPreferenceDataStore; // inherited from NSObject +declare class UAPreferenceCenterConfigCommonSection extends NSObject implements UAPreferenceCenterConfigSection { + static alloc(): UAPreferenceCenterConfigCommonSection; // inherited from NSObject - constructor(o: { appKey: string }); + static new(): UAPreferenceCenterConfigCommonSection; // inherited from NSObject - arrayForKey(key: string): NSArray; + readonly conditions: NSArray; - boolForKey(key: string): boolean; + readonly display: UAPreferenceConfigCommonDisplay; - boolForKeyDefaultValue(key: string, defaultValue: boolean): boolean; + readonly items: NSArray; - dataForKey(key: string): NSData; + readonly identifier: string; // inherited from UAPreferenceCenterConfigSection - dictionaryForKey(key: string): NSDictionary; + readonly type: UAPreferenceCenterConfigSectionType; // inherited from UAPreferenceCenterConfigSection +} - doubleForKey(key: string): number; +declare const enum UAPreferenceCenterConfigConditionType { + NotificationOptIn = 0, +} - doubleForKeyDefaultValue(key: string, defaultValue: number): number; +declare class UAPreferenceCenterConfigContactSubscription extends NSObject implements UAPreferenceCenterConfigItem { + static alloc(): UAPreferenceCenterConfigContactSubscription; // inherited from NSObject - floatForKey(key: string): number; + static new(): UAPreferenceCenterConfigContactSubscription; // inherited from NSObject - initWithAppKey(appKey: string): this; + readonly conditions: NSArray; - integerForKey(key: string): number; + readonly display: UAPreferenceConfigCommonDisplay; - keyExists(key: string): boolean; + readonly scopes: UAChannelScopes; - objectForKey(key: string): any; + readonly subscriptionID: string; - removeObjectForKey(key: string): void; + readonly identifier: string; // inherited from UAPreferenceCenterConfigItem - setBoolForKey(bool_: boolean, key: string): void; + readonly type: UAPreferenceCenterConfigItemType; // inherited from UAPreferenceCenterConfigItem +} - setDoubleForKey(double_: number, key: string): void; +declare class UAPreferenceCenterConfigContactSubscriptionGroup extends NSObject implements UAPreferenceCenterConfigItem { + static alloc(): UAPreferenceCenterConfigContactSubscriptionGroup; // inherited from NSObject - setFloatForKey(float_: number, key: string): void; + static new(): UAPreferenceCenterConfigContactSubscriptionGroup; // inherited from NSObject - setIntegerForKey(int_: number, key: string): void; + readonly components: NSArray; - setObjectForKey(object: any, key: string): void; + readonly conditions: NSArray; - stringArrayForKey(key: string): NSArray; + readonly display: UAPreferenceConfigCommonDisplay; - stringForKey(key: string): string; -} + readonly subscriptionID: string; -interface UAPreferenceItem { - conditions: NSArray; + readonly identifier: string; // inherited from UAPreferenceCenterConfigItem - display: UAPreferenceCommonDisplay; + readonly type: UAPreferenceCenterConfigItemType; // inherited from UAPreferenceCenterConfigItem +} +interface UAPreferenceCenterConfigItem { identifier: string; - itemType: UAPreferenceItemType; - - type: string; + type: UAPreferenceCenterConfigItemType; } -declare var UAPreferenceItem: { - prototype: UAPreferenceItem; +declare var UAPreferenceCenterConfigItem: { + prototype: UAPreferenceCenterConfigItem; }; -declare const enum UAPreferenceItemType { +declare const enum UAPreferenceCenterConfigItemType { ChannelSubscription = 0, ContactSubscription = 1, @@ -6993,177 +4259,185 @@ declare const enum UAPreferenceItemType { Alert = 3, } -declare class UAPreferenceLabeledSectionBreakSection extends NSObject implements UAPreferenceSection { - static alloc(): UAPreferenceLabeledSectionBreakSection; // inherited from NSObject - - static new(): UAPreferenceLabeledSectionBreakSection; // inherited from NSObject - - conditions: NSArray; +declare class UAPreferenceCenterConfigNotificationOptInCondition extends NSObject implements UAPreferenceConfigCondition { + static alloc(): UAPreferenceCenterConfigNotificationOptInCondition; // inherited from NSObject - readonly display: UAPreferenceCommonDisplay; // inherited from UAPreferenceSection + static new(): UAPreferenceCenterConfigNotificationOptInCondition; // inherited from NSObject - readonly identifier: string; // inherited from UAPreferenceSection - - readonly items: NSArray; // inherited from UAPreferenceSection - - readonly sectionType: UAPreferenceSectionType; // inherited from UAPreferenceSection + readonly optInStatus: UANotificationOptInConditionStatus; - readonly type: string; // inherited from UAPreferenceSection + readonly type: UAPreferenceCenterConfigConditionType; // inherited from UAPreferenceConfigCondition } -declare class UAPreferenceNotificationOptInCondition extends NSObject implements UAPreferenceConditions { - static alloc(): UAPreferenceNotificationOptInCondition; // inherited from NSObject +declare class UAPreferenceCenterConfigOptions extends NSObject { + static alloc(): UAPreferenceCenterConfigOptions; // inherited from NSObject - static new(): UAPreferenceNotificationOptInCondition; // inherited from NSObject + static new(): UAPreferenceCenterConfigOptions; // inherited from NSObject - readonly optInStatus: UANotificationOptInConditionStatus; + readonly mergeChannelDataToContact: boolean; - type: string; + constructor(o: { mergeChannelDataToContact: boolean }); - readonly conditionType: UAPreferenceConditionType; // inherited from UAPreferenceConditions + initWithMergeChannelDataToContact(mergeChannelDataToContact: boolean): this; } -interface UAPreferenceSection { - conditions: NSArray; - - display: UAPreferenceCommonDisplay; - +interface UAPreferenceCenterConfigSection { identifier: string; - items: NSArray; - - sectionType: UAPreferenceSectionType; - - type: string; + type: UAPreferenceCenterConfigSectionType; } -declare var UAPreferenceSection: { - prototype: UAPreferenceSection; +declare var UAPreferenceCenterConfigSection: { + prototype: UAPreferenceCenterConfigSection; }; -declare const enum UAPreferenceSectionType { +declare const enum UAPreferenceCenterConfigSectionType { Common = 0, LabeledSectionBreak = 1, } -declare class UAPrivacyManager extends NSObject { - static alloc(): UAPrivacyManager; // inherited from NSObject +interface UAPreferenceCenterOpenDelegate { + openPreferenceCenter(preferenceCenterID: string): boolean; +} +declare var UAPreferenceCenterOpenDelegate: { + prototype: UAPreferenceCenterOpenDelegate; +}; - static new(): UAPrivacyManager; // inherited from NSObject +declare class UAPreferenceCenterSDKModule extends NSObject { + static alloc(): UAPreferenceCenterSDKModule; // inherited from NSObject - enabledFeatures: UAFeatures; + static new(): UAPreferenceCenterSDKModule; // inherited from NSObject +} - static readonly changeEvent: string; +declare class UAPreferenceCenterViewControllerFactory extends NSObject { + static alloc(): UAPreferenceCenterViewControllerFactory; // inherited from NSObject - constructor(o: { dataStore: UAPreferenceDataStore; defaultEnabledFeatures: UAFeatures }); + static makeViewControllerWithPreferenceCenterIDDismissAction(preferenceCenterID: string, dismissAction: () => void): UIViewController; - constructor(o: { dataStore: UAPreferenceDataStore; defaultEnabledFeatures: UAFeatures; notificationCenter: NSNotificationCenter }); + static makeViewControllerWithPreferenceCenterIDPreferenceCenterThemePlistError(preferenceCenterID: string, preferenceCenterThemePlist: string): UIViewController; - disableFeatures(features: UAFeatures): void; + static new(): UAPreferenceCenterViewControllerFactory; // inherited from NSObject +} - enableFeatures(features: UAFeatures): void; +declare class UAPreferenceConfigAlertDisplay extends NSObject { + static alloc(): UAPreferenceConfigAlertDisplay; // inherited from NSObject - initWithDataStoreDefaultEnabledFeatures(dataStore: UAPreferenceDataStore, defaultEnabledFeatures: UAFeatures): this; + static new(): UAPreferenceConfigAlertDisplay; // inherited from NSObject - initWithDataStoreDefaultEnabledFeaturesNotificationCenter(dataStore: UAPreferenceDataStore, defaultEnabledFeatures: UAFeatures, notificationCenter: NSNotificationCenter): this; + readonly iconURL: string; - isAnyFeatureEnabled(): boolean; + readonly subtitle: string; - isEnabled(feature: UAFeatures): boolean; + readonly title: string; } -declare class UAPromptPermissionAction extends NSObject implements UAAction { - static alloc(): UAPromptPermissionAction; // inherited from NSObject +declare class UAPreferenceConfigCommonDisplay extends NSObject { + static alloc(): UAPreferenceConfigCommonDisplay; // inherited from NSObject - static makePermissionReceiverMetadataWithResultReceiver(resultReceiver: (p1: UAPermission, p2: UAPermissionStatus, p3: UAPermissionStatus) => void): NSDictionary; + static new(): UAPreferenceConfigCommonDisplay; // inherited from NSObject - static new(): UAPromptPermissionAction; // inherited from NSObject + readonly subtitle: string; - static readonly resultReceiverMetadataKey: string; + readonly title: string; +} - readonly debugDescription: string; // inherited from NSObjectProtocol +interface UAPreferenceConfigCondition { + type: UAPreferenceCenterConfigConditionType; +} +declare var UAPreferenceConfigCondition: { + prototype: UAPreferenceConfigCondition; +}; - readonly description: string; // inherited from NSObjectProtocol +declare class UAPreferenceContactSubscriptionGroupComponent extends NSObject { + static alloc(): UAPreferenceContactSubscriptionGroupComponent; // inherited from NSObject - readonly hash: number; // inherited from NSObjectProtocol + static new(): UAPreferenceContactSubscriptionGroupComponent; // inherited from NSObject - readonly isProxy: boolean; // inherited from NSObjectProtocol + readonly display: UAPreferenceConfigCommonDisplay; - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + readonly scopes: UAChannelScopes; +} - readonly; // inherited from NSObjectProtocol +declare class UAPreferenceDataStore extends NSObject { + static alloc(): UAPreferenceDataStore; // inherited from NSObject - acceptsArguments(_arguments: UAActionArguments): boolean; + static new(): UAPreferenceDataStore; // inherited from NSObject - class(): typeof NSObject; + constructor(o: { appKey: string }); - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + arrayForKey(key: string): NSArray; + + boolForKey(key: string): boolean; - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; + boolForKeyDefaultValue(key: string, defaultValue: boolean): boolean; - isEqual(object: any): boolean; + dataForKey(key: string): NSData; - isKindOfClass(aClass: typeof NSObject): boolean; + dictionaryForKey(key: string): NSDictionary; - isMemberOfClass(aClass: typeof NSObject): boolean; + doubleForKey(key: string): number; - performSelector(aSelector: string): any; + doubleForKeyDefaultValue(key: string, defaultValue: number): number; - performSelectorWithObject(aSelector: string, object: any): any; + floatForKey(key: string): number; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + initWithAppKey(appKey: string): this; + + integerForKey(key: string): number; - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; + keyExists(key: string): boolean; - respondsToSelector(aSelector: string): boolean; + objectForKey(key: string): any; - retainCount(): number; + removeObjectForKey(key: string): void; - self(): this; + setBoolForKey(bool_: boolean, key: string): void; - willPerformWithArguments(_arguments: UAActionArguments): void; -} + setDoubleForKey(double_: number, key: string): void; -declare class UAPromptPermissionActionPredicate extends NSObject implements UAActionPredicateProtocol { - static alloc(): UAPromptPermissionActionPredicate; // inherited from NSObject + setFloatForKey(float_: number, key: string): void; - static new(): UAPromptPermissionActionPredicate; // inherited from NSObject + setIntegerForKey(int_: number, key: string): void; - readonly debugDescription: string; // inherited from NSObjectProtocol + setObjectForKey(object: any, key: string): void; - readonly description: string; // inherited from NSObjectProtocol + stringArrayForKey(key: string): NSArray; - readonly hash: number; // inherited from NSObjectProtocol + stringForKey(key: string): string; +} - readonly isProxy: boolean; // inherited from NSObjectProtocol +declare class UAPreferenceLabeledSectionBreak extends NSObject implements UAPreferenceCenterConfigSection { + static alloc(): UAPreferenceLabeledSectionBreak; // inherited from NSObject - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + static new(): UAPreferenceLabeledSectionBreak; // inherited from NSObject - readonly; // inherited from NSObjectProtocol + readonly conditions: NSArray; - applyActionArguments(args: UAActionArguments): boolean; + readonly display: UAPreferenceConfigCommonDisplay; - class(): typeof NSObject; + readonly identifier: string; // inherited from UAPreferenceCenterConfigSection - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + readonly type: UAPreferenceCenterConfigSectionType; // inherited from UAPreferenceCenterConfigSection +} - isEqual(object: any): boolean; +declare class UAPrivacyManager extends NSObject { + static alloc(): UAPrivacyManager; // inherited from NSObject - isKindOfClass(aClass: typeof NSObject): boolean; + static new(): UAPrivacyManager; // inherited from NSObject - isMemberOfClass(aClass: typeof NSObject): boolean; + static privacyManagerWithDataStoreDefaultEnabledFeatures(dataStore: UAPreferenceDataStore, defaultEnabledFeatures: UAFeatures): UAPrivacyManager; - performSelector(aSelector: string): any; + enabledFeatures: UAFeatures; - performSelectorWithObject(aSelector: string, object: any): any; + static readonly changeEvent: string; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + disableFeatures(features: UAFeatures): void; - respondsToSelector(aSelector: string): boolean; + enableFeatures(features: UAFeatures): void; - retainCount(): number; + isAnyFeatureEnabled(): boolean; - self(): this; + isEnabled(features: UAFeatures): boolean; } declare class UAProximityRegion extends NSObject { @@ -7180,21 +4454,53 @@ declare class UAProximityRegion extends NSObject { static proximityRegionWithIDMajorMinorRssiLatitudeLongitude(proximityID: string, major: number, minor: number, rssi: number, latitude: number, longitude: number): UAProximityRegion; } -declare class UAPush extends NSObject implements UAComponent, UAPushProtocol { +declare class UAPush extends NSObject implements UAComponent { static alloc(): UAPush; // inherited from NSObject static new(): UAPush; // inherited from NSObject + readonly authorizationStatus: UAAuthorizationStatus; + + readonly authorizedNotificationSettings: UAAuthorizedNotificationSettings; + autobadgeEnabled: boolean; + backgroundPushNotificationsEnabled: boolean; + + badgeNumber: number; + + readonly combinedCategories: NSSet; + + customCategories: NSSet; + + defaultPresentationOptions: UNNotificationPresentationOptions; + + readonly deviceToken: string; + readonly isPushNotificationsOptedIn: boolean; + readonly launchNotificationResponse: UNNotificationResponse; + + notificationOptions: UANotificationOptions; + + pushNotificationDelegate: UAPushNotificationDelegate; + readonly quietTime: NSDictionary; quietTimeEnabled: boolean; + registrationDelegate: UARegistrationDelegate; + + requestExplicitPermissionWhenEphemeral: boolean; + + requireAuthorizationForDefaultCategories: boolean; + timeZone: NSTimeZone; + readonly userPromptedForNotifications: boolean; + + userPushNotificationsEnabled: boolean; + static readonly quietTimeEndKey: string; static readonly quietTimeStartKey: string; @@ -7209,54 +4515,18 @@ declare class UAPush extends NSObject implements UAComponent, UAPushProtocol { static readonly shared: UAPush; - accengageCategories: NSSet; // inherited from UAPushProtocol - - readonly authorizationStatus: UAAuthorizationStatus; // inherited from UAPushProtocol - - readonly authorizedNotificationSettings: UAAuthorizedNotificationSettings; // inherited from UAPushProtocol - - backgroundPushNotificationsEnabled: boolean; // inherited from UAPushProtocol - - badgeNumber: number; // inherited from UAPushProtocol - - readonly combinedCategories: NSSet; // inherited from UAPushProtocol - componentEnabled: boolean; // inherited from UAComponent - customCategories: NSSet; // inherited from UAPushProtocol - readonly debugDescription: string; // inherited from NSObjectProtocol - defaultPresentationOptions: UNNotificationPresentationOptions; // inherited from UAPushProtocol - readonly description: string; // inherited from NSObjectProtocol - readonly deviceToken: string; // inherited from UAPushProtocol - - extendedPushNotificationPermissionEnabled: boolean; // inherited from UAPushProtocol - readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol - readonly launchNotificationResponse: UNNotificationResponse; // inherited from UAPushProtocol - - notificationOptions: UANotificationOptions; // inherited from UAPushProtocol - - pushNotificationDelegate: UAPushNotificationDelegate; // inherited from UAPushProtocol - - registrationDelegate: UARegistrationDelegate; // inherited from UAPushProtocol - - requestExplicitPermissionWhenEphemeral: boolean; // inherited from UAPushProtocol - - requireAuthorizationForDefaultCategories: boolean; // inherited from UAPushProtocol - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - readonly userPromptedForNotifications: boolean; // inherited from UAPushProtocol - - userPushNotificationsEnabled: boolean; // inherited from UAPushProtocol - readonly; // inherited from NSObjectProtocol airshipReady(): void; @@ -7269,7 +4539,7 @@ declare class UAPush extends NSObject implements UAComponent, UAPushProtocol { deepLink(deepLink: NSURL): boolean; - enableUserPushNotifications(completionHandler: (p1: boolean) => void): void; + enableUserPushNotificationsWithCompletionHandler(completionHandler: (p1: boolean) => void): void; isEqual(object: any): boolean; @@ -7312,8 +4582,6 @@ declare var UAPushNotificationDelegate: { }; interface UAPushProtocol { - accengageCategories: NSSet; - authorizationStatus: UAAuthorizationStatus; authorizedNotificationSettings: UAAuthorizedNotificationSettings; @@ -7330,7 +4598,7 @@ interface UAPushProtocol { deviceToken: string; - extendedPushNotificationPermissionEnabled: boolean; + isPushNotificationsOptedIn: boolean; launchNotificationResponse: UNNotificationResponse; @@ -7363,76 +4631,6 @@ declare var UAPushableComponent: { prototype: UAPushableComponent; }; -declare class UAQuietTime extends NSObject { - static alloc(): UAQuietTime; // inherited from NSObject - - static new(): UAQuietTime; // inherited from NSObject - - readonly end: string; - - readonly start: string; - - constructor(o: { start: string; end: string }); - - initWithStartEnd(start: string, end: string): this; -} - -declare class UARateAppAction extends NSObject implements UAAction { - static alloc(): UARateAppAction; // inherited from NSObject - - static new(): UARateAppAction; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - acceptsArguments(_arguments: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; -} - -declare var UARateAppActionDefaultRegistryAlias: string; - -declare var UARateAppActionDefaultRegistryName: string; - -declare var UARateAppItunesIDKey: string; - -declare var UARateAppShowLinkPromptKey: string; - declare class UARegionEvent extends NSObject implements UAEvent { static alloc(): UARegionEvent; // inherited from NSObject @@ -7514,236 +4712,70 @@ declare var UARegistrationDelegate: { prototype: UARegistrationDelegate; }; -declare class UARemoteConfigManager extends NSObject { - static alloc(): UARemoteConfigManager; // inherited from NSObject - - static new(): UARemoteConfigManager; // inherited from NSObject - - static readonly remoteConfigKey: string; - - static readonly remoteConfigUpdatedEvent: string; - - constructor(o: { remoteDataManager: UARemoteDataProvider; privacyManager: UAPrivacyManager }); - - initWithRemoteDataManagerPrivacyManager(remoteDataManager: UARemoteDataProvider, privacyManager: UAPrivacyManager): this; -} - -declare class UARemoteDataAPIClient extends NSObject implements UARemoteDataAPIClientProtcol { - static alloc(): UARemoteDataAPIClient; // inherited from NSObject - - static new(): UARemoteDataAPIClient; // inherited from NSObject - - constructor(o: { config: UARuntimeConfig }); - - constructor(o: { config: UARuntimeConfig; session: UARequestSession }); - - fetchRemoteDataWithLocaleRandomValueLastModifiedCompletionHandler(locale: NSLocale, randomValue: number, lastModified: string, completionHandler: (p1: UARemoteDataResponse, p2: NSError) => void): UADisposable; - - initWithConfig(config: UARuntimeConfig): this; - - initWithConfigSession(config: UARuntimeConfig, session: UARequestSession): this; - - metadataWithLocaleRandomValueLastModified(locale: NSLocale, randomValue: number, lastModified: string): NSDictionary; -} - -interface UARemoteDataAPIClientProtcol { - fetchRemoteDataWithLocaleRandomValueLastModifiedCompletionHandler(locale: NSLocale, randomValue: number, lastModified: string, completionHandler: (p1: UARemoteDataResponse, p2: NSError) => void): UADisposable; - - metadataWithLocaleRandomValueLastModified(locale: NSLocale, randomValue: number, lastModified: string): NSDictionary; -} -declare var UARemoteDataAPIClientProtcol: { - prototype: UARemoteDataAPIClientProtcol; -}; - -declare class UARemoteDataManager extends NSObject implements UAComponent, UAPushableComponent, UARemoteDataProvider { - static alloc(): UARemoteDataManager; // inherited from NSObject - - static new(): UARemoteDataManager; // inherited from NSObject - - lastModified: string; - - componentEnabled: boolean; // inherited from UAComponent - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - remoteDataRefreshInterval: number; // inherited from UARemoteDataProvider - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - constructor(o: { config: UARuntimeConfig; dataStore: UAPreferenceDataStore; localeManager: LocaleManagerProtocol; privacyManager: UAPrivacyManager }); - - constructor(o: { dataStore: UAPreferenceDataStore; localeManager: LocaleManagerProtocol; privacyManager: UAPrivacyManager; apiClient: UARemoteDataAPIClientProtcol; remoteDataStore: UARemoteDataStore; taskManager: TaskManagerProtocol; dispatcher: UADispatcher; date: UADate; notificationCenter: NSNotificationCenter; appStateTracker: UAAppStateTracker; networkMonitor: UANetworkMonitor }); - - airshipReady(): void; - - applyRemoteConfig(config: any): void; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - deepLink(deepLink: NSURL): boolean; - - initWithConfigDataStoreLocaleManagerPrivacyManager(config: UARuntimeConfig, dataStore: UAPreferenceDataStore, localeManager: LocaleManagerProtocol, privacyManager: UAPrivacyManager): this; - - initWithDataStoreLocaleManagerPrivacyManagerApiClientRemoteDataStoreTaskManagerDispatcherDateNotificationCenterAppStateTrackerNetworkMonitor(dataStore: UAPreferenceDataStore, localeManager: LocaleManagerProtocol, privacyManager: UAPrivacyManager, apiClient: UARemoteDataAPIClientProtcol, remoteDataStore: UARemoteDataStore, taskManager: TaskManagerProtocol, dispatcher: UADispatcher, date: UADate, notificationCenter: NSNotificationCenter, appStateTracker: UAAppStateTracker, networkMonitor: UANetworkMonitor): this; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - isMetadataCurrent(metadata: NSDictionary): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - presentationOptionsForNotificationDefaultPresentationOptions(notification: UNNotification, options: UNNotificationPresentationOptions): UNNotificationPresentationOptions; - - receivedNotificationResponseCompletionHandler(response: UNNotificationResponse, completionHandler: () => void): void; - - receivedRemoteNotificationCompletionHandler(notification: NSDictionary, completionHandler: (p1: UIBackgroundFetchResult) => void): void; - - refreshWithForceCompletionHandler(force: boolean, completionHandler: (p1: boolean) => void): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - subscribeWithTypesBlock(types: NSArray | string[], block: (p1: NSArray) => void): UADisposable; -} - -declare class UARemoteDataPayload extends NSObject { - static alloc(): UARemoteDataPayload; // inherited from NSObject - - static new(): UARemoteDataPayload; // inherited from NSObject - - readonly data: NSDictionary; - - readonly metadata: NSDictionary; - - readonly timestamp: Date; - - readonly type: string; - - constructor(o: { type: string; timestamp: Date; data: NSDictionary; metadata: NSDictionary }); - - initWithTypeTimestampDataMetadata(type: string, timestamp: Date, data: NSDictionary, metadata: NSDictionary): this; -} - -interface UARemoteDataProvider { - remoteDataRefreshInterval: number; - - isMetadataCurrent(metadata: NSDictionary): boolean; - - refreshWithForceCompletionHandler(force: boolean, completionHandler: (p1: boolean) => void): void; - - subscribeWithTypesBlock(types: NSArray | string[], block: (p1: NSArray) => void): UADisposable; -} -declare var UARemoteDataProvider: { - prototype: UARemoteDataProvider; -}; - -declare class UARemoteDataResponse extends UAHTTPResponse { - static alloc(): UARemoteDataResponse; // inherited from NSObject - - static new(): UARemoteDataResponse; // inherited from NSObject - - readonly lastModified: string; - - readonly metadata: NSDictionary; - - readonly payloads: NSArray; - - constructor(o: { status: number; metadata: NSDictionary; payloads: NSArray | UARemoteDataPayload[]; lastModified: string }); - - initWithStatusMetadataPayloadsLastModified(status: number, metadata: NSDictionary, payloads: NSArray | UARemoteDataPayload[], lastModified: string): this; -} - -declare class UARemoteDataStore extends NSObject { - static alloc(): UARemoteDataStore; // inherited from NSObject - - static new(): UARemoteDataStore; // inherited from NSObject - - constructor(o: { storeName: string }); - - constructor(o: { storeName: string; inMemory: boolean }); +declare class UARemoteDataAutomationAccess extends NSObject { + static alloc(): UARemoteDataAutomationAccess; // inherited from NSObject - fetchRemoteDataFromCacheWithPredicateCompletionHandler(predicate: NSPredicate, completionHandler: (p1: NSArray) => void): void; + static new(): UARemoteDataAutomationAccess; // inherited from NSObject - initWithStoreName(storeName: string): this; + isCurrentWithRemoteDataInfoCompletionHandler(remoteDataInfo: UARemoteDataInfo, completionHandler: (p1: boolean) => void): void; - initWithStoreNameInMemory(storeName: string, inMemory: boolean): this; + refreshAndCheckCurrentWithRemoteDataInfoCompletionHandler(remoteDataInfo: UARemoteDataInfo, completionHandler: (p1: boolean) => void): void; - overwriteCachedRemoteDataCompletionHandler(payloads: NSArray | UARemoteDataPayload[], completionHandler: (p1: boolean) => void): void; + refreshOutdatedWithRemoteDataInfoCompletionHandler(remoteDataInfo: UARemoteDataInfo, completionHandler: () => void): void; - shutDown(): void; + subscribeWithTypesBlock(types: NSArray | string[], block: (p1: NSArray) => void): UADisposable; } -declare class UARemoveTagsAction extends UAModifyTagsAction { - static alloc(): UARemoveTagsAction; // inherited from NSObject +declare class UARemoteDataInfo extends NSObject implements NSCopying { + static alloc(): UARemoteDataInfo; // inherited from NSObject - static new(): UARemoveTagsAction; // inherited from NSObject + static fromJSONWithStringError(string: string): UARemoteDataInfo; - static readonly name: string; + static new(): UARemoteDataInfo; // inherited from NSObject - static readonly shortName: string; -} + readonly contactID: string; -declare class UARequest extends NSObject { - static alloc(): UARequest; // inherited from NSObject + readonly source: UARemoteDataSource; - static new(): UARequest; // inherited from NSObject + copyWithZone(zone: interop.Pointer | interop.Reference): any; - static requestWithBuilderBlock(block: (p1: UARequestBuilder) => void): UARequest; + toEncodedJSONStringAndReturnError(): string; +} - readonly body: NSData; +declare class UARemoteDataPayload extends NSObject { + static alloc(): UARemoteDataPayload; // inherited from NSObject - readonly headers: NSDictionary; + static new(): UARemoteDataPayload; // inherited from NSObject - readonly method: string; + readonly data: NSDictionary; - readonly url: NSURL; + readonly remoteDataInfo: UARemoteDataInfo; - constructor(o: { builderBlock: (p1: UARequestBuilder) => void }); + readonly timestamp: Date; - initWithBuilderBlock(builderBlock: (p1: UARequestBuilder) => void): this; + readonly type: string; } -declare class UARequestBuilder extends NSObject { - static alloc(): UARequestBuilder; // inherited from NSObject - - static new(): UARequestBuilder; // inherited from NSObject +declare const enum UARemoteDataSource { + App = 0, - body: NSData; + Contact = 1, +} - compressBody: boolean; +declare class UARequest extends NSObject { + static alloc(): UARequest; // inherited from NSObject - method: string; + static makeChannelAuthRequestWithChannelIDMethodUrlHeadersBody(channelID: string, method: string, url: NSURL, headers: NSDictionary, body: NSData): UARequest; - password: string; + static new(): UARequest; // inherited from NSObject - url: NSURL; + readonly body: NSData; - username: string; + readonly headers: NSDictionary; - addHeaders(headers: NSDictionary): void; + readonly method: string; - setValueHeader(value: string, header: string): void; + readonly url: NSURL; } declare class UARequestSession extends NSObject { @@ -7753,15 +4785,9 @@ declare class UARequestSession extends NSObject { constructor(o: { config: UARuntimeConfig }); - constructor(o: { config: UARuntimeConfig; session: NSURLSession }); - initWithConfig(config: UARuntimeConfig): this; - initWithConfigSession(config: UARuntimeConfig, session: NSURLSession): this; - - performHTTPRequestCompletionHandler(request: UARequest, completionHandler: (p1: NSData, p2: NSHTTPURLResponse, p3: NSError) => void): UADisposable; - - setValueHeader(value: string, header: string): void; + performHTTPRequestCompletionHandler(request: UARequest, completionHandler: (p1: NSData, p2: NSHTTPURLResponse, p3: NSError) => void): void; } declare class UARetailEventTemplate extends NSObject { @@ -7843,6 +4869,8 @@ declare class UARuntimeConfig extends NSObject { readonly appSecret: string; + readonly autoPauseInAppAutomationOnLaunch: boolean; + readonly chatURL: string; readonly chatWebSocketURL: string; @@ -7851,12 +4879,8 @@ declare class UARuntimeConfig extends NSObject { readonly clearUserOnAppRestore: boolean; - readonly customConfig: NSDictionary; - readonly deviceAPIURL: string; - readonly enabledFeatures: UAFeatures; - readonly inProduction: boolean; readonly isAnalyticsEnabled: boolean; @@ -7881,8 +4905,6 @@ declare class UARuntimeConfig extends NSObject { readonly requireInitialRemoteConfigEnabled: boolean; - readonly suppressAllowListError: boolean; - static readonly configUpdatedEvent: string; constructor(o: { config: UAConfig; dataStore: UAPreferenceDataStore }); @@ -7897,6 +4919,8 @@ declare class UASDKDependencyKeys extends NSObject { static readonly analytics: string; + static readonly automationAudienceOverridesProvider: string; + static readonly channel: string; static readonly config: string; @@ -7912,6 +4936,10 @@ declare class UASDKDependencyKeys extends NSObject { static readonly push: string; static readonly remoteData: string; + + static readonly remoteDataAutomation: string; + + static readonly workManager: string; } declare const enum UASDKExtension { @@ -7928,17 +4956,6 @@ declare const enum UASDKExtension { Titanium = 5, } -interface UASDKModule extends NSObjectProtocol { - actionsPlist?(): string; - - components?(): NSArray; -} -declare var UASDKModule: { - prototype: UASDKModule; - - loadWithDependencies(dependencies: NSDictionary): UASDKModule; -}; - declare class UASMSRegistrationOptions extends NSObject { static alloc(): UASMSRegistrationOptions; // inherited from NSObject @@ -7976,18 +4993,24 @@ declare class UASchedule extends NSObject { readonly start: Date; + readonly triggeredTime: Date; + readonly triggers: NSArray; isEqualToSchedule(schedule: UASchedule): boolean; } -declare class UAScheduleAction extends NSObject implements UAAction { +declare class UAScheduleAction extends NSObject implements UALegacyAction { static alloc(): UAScheduleAction; // inherited from NSObject static new(): UAScheduleAction; // inherited from NSObject readonly debugDescription: string; // inherited from NSObjectProtocol + readonly defaultNames: NSArray; // inherited from UALegacyAction + + readonly defaultPredicate: (p1: any, p2: number) => boolean; // inherited from UALegacyAction + readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol @@ -7998,14 +5021,12 @@ declare class UAScheduleAction extends NSObject implements UAAction { readonly; // inherited from NSObjectProtocol - acceptsArguments(_arguments: UAActionArguments): boolean; + acceptsArgumentValueSituation(_arguments: any, situation: number): boolean; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; - isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; @@ -8018,15 +5039,13 @@ declare class UAScheduleAction extends NSObject implements UAAction { performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; + performWithArgumentValueSituationPushUserInfoCompletionHandler(argument: any, situation: number, pushUserInfo: NSDictionary, completionHandler: () => void): void; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; } declare var UAScheduleActionDefaultRegistryAlias: string; @@ -8120,6 +5139,8 @@ declare class UAScheduleBuilder extends NSObject { start: Date; + triggeredTime: Date; + triggers: NSArray; } @@ -8249,6 +5270,8 @@ declare class UAScheduleEdits extends NSObject { readonly priority: number; readonly start: Date; + + triggeredTime: Date; } declare class UAScheduleEditsBuilder extends NSObject { @@ -8271,6 +5294,8 @@ declare class UAScheduleEditsBuilder extends NSObject { priority: number; start: Date; + + triggeredTime: Date; } declare var UAScheduleMaxTriggers: number; @@ -8304,317 +5329,103 @@ declare class UAScheduleTrigger extends NSObject implements NSSecureCoding { readonly goal: number; - readonly type: UAScheduleTriggerType; - - static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding - - constructor(o: { coder: NSCoder }); // inherited from NSCoding - - encodeWithCoder(coder: NSCoder): void; - - initWithCoder(coder: NSCoder): this; - - isEqualToTrigger(trigger: UAScheduleTrigger): boolean; -} - -declare var UAScheduleTriggerActiveSessionName: string; - -declare var UAScheduleTriggerAppBackgroundName: string; - -declare var UAScheduleTriggerAppForegroundName: string; - -declare var UAScheduleTriggerAppInitName: string; - -declare var UAScheduleTriggerCustomEventCountName: string; - -declare var UAScheduleTriggerCustomEventValueName: string; - -declare const enum UAScheduleTriggerErrorCode { - InvalidJSON = 0, -} - -declare var UAScheduleTriggerErrorDomain: string; - -declare var UAScheduleTriggerGoalKey: string; - -declare var UAScheduleTriggerPredicateKey: string; - -declare var UAScheduleTriggerRegionEnterName: string; - -declare var UAScheduleTriggerRegionExitName: string; - -declare var UAScheduleTriggerScreenName: string; - -declare const enum UAScheduleTriggerType { - AppForeground = 0, - - AppBackground = 1, - - RegionEnter = 2, - - RegionExit = 3, - - CustomEventCount = 4, - - CustomEventValue = 5, - - Screen = 6, - - AppInit = 7, - - ActiveSession = 8, - - Version = 9, -} - -declare var UAScheduleTriggerTypeKey: string; - -declare var UAScheduleTriggerVersionName: string; - -declare class UAScopedSubscriptionListEditor extends NSObject { - static alloc(): UAScopedSubscriptionListEditor; // inherited from NSObject - - static new(): UAScopedSubscriptionListEditor; // inherited from NSObject - - apply(): void; - - subscribeScope(subscriptionListID: string, scope: UAChannelScope): void; - - unsubscribeScope(subscriptionListID: string, scope: UAChannelScope): void; -} - -declare class UASemaphore extends NSObject { - static alloc(): UASemaphore; // inherited from NSObject - - static new(): UASemaphore; // inherited from NSObject - - constructor(o: { value: number }); - - initWithValue(value: number): this; - - signal(): boolean; - - wait(): void; -} - -declare var UASeparatedButtonSpacingKey: string; - -declare class UAShareAction extends NSObject implements UAAction { - static alloc(): UAShareAction; // inherited from NSObject - - static new(): UAShareAction; // inherited from NSObject - - static readonly name: string; - - static readonly shortName: string; - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - acceptsArguments(_arguments: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; - - willPerformWithArguments(_arguments: UAActionArguments): void; -} - -declare class UAShareActionPredicate extends NSObject implements UAActionPredicateProtocol { - static alloc(): UAShareActionPredicate; // inherited from NSObject - - static new(): UAShareActionPredicate; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - applyActionArguments(args: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - -declare const enum UASituation { - ManualInvocation = 0, - - LaunchedFromPush = 1, - - ForegroundPush = 2, - - BackgroundPush = 3, - - WebViewInvocation = 4, - - ForegroundInteractiveButton = 5, - - BackgroundInteractiveButton = 6, - - Automation = 7, -} - -declare var UAStackedButtonSpacingKey: string; - -declare class UASubscriptionListAction extends NSObject implements UAAction { - static alloc(): UASubscriptionListAction; // inherited from NSObject - - static new(): UASubscriptionListAction; // inherited from NSObject - - static readonly altName: string; - - static readonly altShortName: string; - - static readonly name: string; - - static readonly shortName: string; - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol + readonly type: UAScheduleTriggerType; - readonly hash: number; // inherited from NSObjectProtocol + static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding - readonly isProxy: boolean; // inherited from NSObjectProtocol + constructor(o: { coder: NSCoder }); // inherited from NSCoding - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + encodeWithCoder(coder: NSCoder): void; - readonly; // inherited from NSObjectProtocol + initWithCoder(coder: NSCoder): this; - constructor(o: { channel: () => UAChannelProtocol; contact: () => UAContactProtocol }); + isEqualToTrigger(trigger: UAScheduleTrigger): boolean; +} - acceptsArguments(_arguments: UAActionArguments): boolean; +declare var UAScheduleTriggerActiveSessionName: string; - class(): typeof NSObject; +declare var UAScheduleTriggerAppBackgroundName: string; - conformsToProtocol(aProtocol: any /* Protocol */): boolean; +declare var UAScheduleTriggerAppForegroundName: string; - didPerformWithArgumentsWithResult(_arguments: UAActionArguments, result: UAActionResult): void; +declare var UAScheduleTriggerAppInitName: string; - initWithChannelContact(channel: () => UAChannelProtocol, contact: () => UAContactProtocol): this; +declare var UAScheduleTriggerCustomEventCountName: string; - isEqual(object: any): boolean; +declare var UAScheduleTriggerCustomEventValueName: string; - isKindOfClass(aClass: typeof NSObject): boolean; +declare const enum UAScheduleTriggerErrorCode { + InvalidJSON = 0, +} - isMemberOfClass(aClass: typeof NSObject): boolean; +declare var UAScheduleTriggerErrorDomain: string; - performSelector(aSelector: string): any; +declare var UAScheduleTriggerGoalKey: string; - performSelectorWithObject(aSelector: string, object: any): any; +declare var UAScheduleTriggerPredicateKey: string; - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; +declare var UAScheduleTriggerRegionEnterName: string; - performWithArgumentsCompletionHandler(_arguments: UAActionArguments, completionHandler: (p1: UAActionResult) => void): void; +declare var UAScheduleTriggerRegionExitName: string; - respondsToSelector(aSelector: string): boolean; +declare var UAScheduleTriggerScreenName: string; - retainCount(): number; +declare const enum UAScheduleTriggerType { + AppForeground = 0, - self(): this; + AppBackground = 1, - willPerformWithArguments(_arguments: UAActionArguments): void; -} + RegionEnter = 2, -declare class UASubscriptionListActionPredicate extends NSObject implements UAActionPredicateProtocol { - static alloc(): UASubscriptionListActionPredicate; // inherited from NSObject + RegionExit = 3, - static new(): UASubscriptionListActionPredicate; // inherited from NSObject + CustomEventCount = 4, - readonly debugDescription: string; // inherited from NSObjectProtocol + CustomEventValue = 5, - readonly description: string; // inherited from NSObjectProtocol + Screen = 6, - readonly hash: number; // inherited from NSObjectProtocol + AppInit = 7, - readonly isProxy: boolean; // inherited from NSObjectProtocol + ActiveSession = 8, - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol + Version = 9, +} - readonly; // inherited from NSObjectProtocol +declare var UAScheduleTriggerTypeKey: string; - applyActionArguments(args: UAActionArguments): boolean; +declare var UAScheduleTriggerVersionName: string; - class(): typeof NSObject; +declare class UAScopedSubscriptionListEditor extends NSObject { + static alloc(): UAScopedSubscriptionListEditor; // inherited from NSObject - conformsToProtocol(aProtocol: any /* Protocol */): boolean; + static new(): UAScopedSubscriptionListEditor; // inherited from NSObject - isEqual(object: any): boolean; + apply(): void; - isKindOfClass(aClass: typeof NSObject): boolean; + subscribeScope(subscriptionListID: string, scope: UAChannelScope): void; - isMemberOfClass(aClass: typeof NSObject): boolean; + unsubscribeScope(subscriptionListID: string, scope: UAChannelScope): void; +} - performSelector(aSelector: string): any; +declare class UASemaphore extends NSObject { + static alloc(): UASemaphore; // inherited from NSObject - performSelectorWithObject(aSelector: string, object: any): any; + static new(): UASemaphore; // inherited from NSObject - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; + constructor(o: { value: number }); - respondsToSelector(aSelector: string): boolean; + initWithValue(value: number): this; - retainCount(): number; + signal(): boolean; - self(): this; + wait(): void; } +declare var UASeparatedButtonSpacingKey: string; + +declare var UAStackedButtonSpacingKey: string; + declare class UASubscriptionListEditor extends NSObject { static alloc(): UASubscriptionListEditor; // inherited from NSObject @@ -8627,22 +5438,6 @@ declare class UASubscriptionListEditor extends NSObject { unsubscribe(subscriptionListID: string): void; } -declare class UASystemVersion extends NSObject { - static alloc(): UASystemVersion; // inherited from NSObject - - static new(): UASystemVersion; // inherited from NSObject - - readonly currentSystemVersion: string; - - isGreaterOrEqual(version: string): boolean; -} - -declare class UATagChanges extends NSObject { - static alloc(): UATagChanges; // inherited from NSObject - - static new(): UATagChanges; // inherited from NSObject -} - declare class UATagEditor extends NSObject { static alloc(): UATagEditor; // inherited from NSObject @@ -8663,43 +5458,15 @@ declare class UATagEditor extends NSObject { setTags(tags: NSArray | string[]): void; } -declare class UATagGroupUpdate extends NSObject { - static alloc(): UATagGroupUpdate; // inherited from NSObject - - static new(): UATagGroupUpdate; // inherited from NSObject - - readonly group: string; - - readonly tags: NSArray; - - readonly type: UATagGroupUpdateType; - - constructor(o: { group: string; tags: NSArray | string[]; type: UATagGroupUpdateType }); - - initWithGroupTagsType(group: string, tags: NSArray | string[], type: UATagGroupUpdateType): this; -} - -declare const enum UATagGroupUpdateType { - Add = 0, - - Remove = 1, - - Set = 2, -} - declare class UATagGroupsEditor extends NSObject { static alloc(): UATagGroupsEditor; // inherited from NSObject static new(): UATagGroupsEditor; // inherited from NSObject - constructor(o: { allowDeviceTagGroup: boolean; completionHandler: (p1: NSArray) => void }); - addTagsGroup(tags: NSArray | string[], group: string): void; apply(): void; - initWithAllowDeviceTagGroupCompletionHandler(allowDeviceTagGroup: boolean, completionHandler: (p1: NSArray) => void): this; - removeTagsGroup(tags: NSArray | string[], group: string): void; setTagsGroup(tags: NSArray | string[], group: string): void; @@ -8715,53 +5482,9 @@ declare class UATagSelector extends NSObject { apply(tags: NSArray | string[]): boolean; } -declare class UATagsActionPredicate extends NSObject implements UAActionPredicateProtocol { - static alloc(): UATagsActionPredicate; // inherited from NSObject - - static new(): UATagsActionPredicate; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - applyActionArguments(args: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - interface UATask { completionHandler: () => void; - expirationHandler: () => void; - requestOptions: UATaskRequestOptions; taskID: string; @@ -8774,14 +5497,6 @@ declare var UATask: { prototype: UATask; }; -declare const enum UATaskConflictPolicy { - Keep = 0, - - Replace = 1, - - Append = 2, -} - declare class UATaskManager extends NSObject implements TaskManagerProtocol { static alloc(): UATaskManager; // inherited from NSObject @@ -8797,9 +5512,9 @@ declare class UATaskManager extends NSObject implements TaskManagerProtocol { enqueueRequestWithIDRateLimitIDsOptionsMinDelay(taskID: string, rateLimitIDs: NSArray | string[], options: UATaskRequestOptions, minDelay: number): void; - registerForTaskWithIDDispatcherLaunchHandler(taskID: string, dispatcher: UADispatcher, launchHandler: (p1: UATask) => void): void; + registerForTaskWithIDTypeDispatcherLaunchHandler(taskID: string, type: UAirshipWorkerType, dispatcher: UADispatcher, launchHandler: (p1: UATask) => void): void; - registerForTaskWithIDsDispatcherLaunchHandler(taskIDs: NSArray | string[], dispatcher: UADispatcher, launchHandler: (p1: UATask) => void): void; + registerForTaskWithIDTypeLaunchHandler(taskID: string, type: UAirshipWorkerType, launchHandler: (p1: UATask) => void): void; setRateLimitForIDRateTimeIntervalError(rateLimitID: string, rate: number, timeInterval: number): boolean; } @@ -8809,17 +5524,17 @@ declare class UATaskRequestOptions extends NSObject { static new(): UATaskRequestOptions; // inherited from NSObject - readonly conflictPolicy: UATaskConflictPolicy; + readonly conflictPolicy: AirshipWorkRequestConflictPolicy; - readonly extras: NSDictionary; + readonly extras: NSDictionary; readonly isNetworkRequired: boolean; static readonly defaultOptions: UATaskRequestOptions; - constructor(o: { conflictPolicy: UATaskConflictPolicy; requiresNetwork: boolean; extras: NSDictionary }); + constructor(o: { conflictPolicy: AirshipWorkRequestConflictPolicy; requiresNetwork: boolean; extras: NSDictionary }); - initWithConflictPolicyRequiresNetworkExtras(conflictPolicy: UATaskConflictPolicy, requiresNetwork: boolean, extras: NSDictionary): this; + initWithConflictPolicyRequiresNetworkExtras(conflictPolicy: AirshipWorkRequestConflictPolicy, requiresNetwork: boolean, extras: NSDictionary): this; } declare var UATextAdditonalPaddingKey: string; @@ -8853,7 +5568,7 @@ declare class UAThomasButtonInfo extends NSObject { } interface UAThomasDelegate { - onButtonTappedWithButtonIdentifierLayoutContext(buttonIdentifier: string, layoutContext: UAThomasLayoutContext): void; + onButtonTappedWithButtonIdentifierMetadataLayoutContext(buttonIdentifier: string, metadata: any, layoutContext: UAThomasLayoutContext): void; onDismissedWithButtonIdentifierButtonDescriptionCancelLayoutContext(buttonIdentifier: string, buttonDescription: string, cancel: boolean, layoutContext: UAThomasLayoutContext): void; @@ -8863,11 +5578,15 @@ interface UAThomasDelegate { onFormSubmittedWithFormResultLayoutContext(formResult: UAThomasFormResult, layoutContext: UAThomasLayoutContext): void; + onPageAutomatedActionWithIdentifierMetadataLayoutContext(identifier: string, metadata: any, layoutContext: UAThomasLayoutContext): void; + + onPageGestureWithIdentifierMetadataLayoutContext(identifier: string, metadata: any, layoutContext: UAThomasLayoutContext): void; + onPageSwipedFromToLayoutContext(from: UAThomasPagerInfo, to: UAThomasPagerInfo, layoutContext: UAThomasLayoutContext): void; onPageViewedWithPagerInfoLayoutContext(pagerInfo: UAThomasPagerInfo, layoutContext: UAThomasLayoutContext): void; - onRunActionsWithActionsLayoutContext(actions: NSDictionary, layoutContext: UAThomasLayoutContext): void; + onPromptPermissionResultWithPermissionStartingStatusEndingStatusLayoutContext(permission: UAPermission, startingStatus: UAPermissionStatus, endingStatus: UAPermissionStatus, layoutContext: UAThomasLayoutContext): void; onTimedOutWithLayoutContext(layoutContext: UAThomasLayoutContext): void; } @@ -8953,62 +5672,6 @@ declare class UAThomasPagerInfo extends NSObject { initWithIdentifierPageIndexPageIdentifierPageCountCompleted(identifier: string, pageIndex: number, pageIdentifier: string, pageCount: number, completed: boolean): this; } -declare class UAUIKitStateTrackerAdapter extends NSObject implements UAAppStateTrackerAdapter { - static alloc(): UAUIKitStateTrackerAdapter; // inherited from NSObject - - static new(): UAUIKitStateTrackerAdapter; // inherited from NSObject - - readonly state: UAApplicationState; // inherited from UAAppStateTrackerAdapter - - stateTrackerDelegate: UAAppStateTrackerDelegate; // inherited from UAAppStateTrackerAdapter - - constructor(o: { notificationCenter: NSNotificationCenter; dispatcher: UADispatcher }); - - initWithNotificationCenterDispatcher(notificationCenter: NSNotificationCenter, dispatcher: UADispatcher): this; -} - -declare class UAURLActionPredicate extends NSObject implements UAActionPredicateProtocol { - static alloc(): UAURLActionPredicate; // inherited from NSObject - - static new(): UAURLActionPredicate; // inherited from NSObject - - readonly debugDescription: string; // inherited from NSObjectProtocol - - readonly description: string; // inherited from NSObjectProtocol - - readonly hash: number; // inherited from NSObjectProtocol - - readonly isProxy: boolean; // inherited from NSObjectProtocol - - readonly superclass: typeof NSObject; // inherited from NSObjectProtocol - - readonly; // inherited from NSObjectProtocol - - applyActionArguments(args: UAActionArguments): boolean; - - class(): typeof NSObject; - - conformsToProtocol(aProtocol: any /* Protocol */): boolean; - - isEqual(object: any): boolean; - - isKindOfClass(aClass: typeof NSObject): boolean; - - isMemberOfClass(aClass: typeof NSObject): boolean; - - performSelector(aSelector: string): any; - - performSelectorWithObject(aSelector: string, object: any): any; - - performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; - - respondsToSelector(aSelector: string): boolean; - - retainCount(): number; - - self(): this; -} - declare class UAURLAllowList extends NSObject implements UAURLAllowListProtocol { static alloc(): UAURLAllowList; // inherited from NSObject @@ -9062,35 +5725,19 @@ declare class UAURLInfo extends NSObject { readonly url: string; - readonly urlType: URLType; - - constructor(o: { urlType: URLType; url: string }); - - initWithUrlTypeUrl(urlType: URLType, url: string): this; -} - -declare class UAUser extends NSObject { - static alloc(): UAUser; // inherited from NSObject - - static new(): UAUser; // inherited from NSObject + readonly urlType: UAURLInfoURLType; - getUserData(completionHandler: (p1: UAUserData) => void): void; + constructor(o: { urlType: UAURLInfoURLType; url: string }); - getUserDataQueue(completionHandler: (p1: UAUserData) => void, queue: NSObject): void; - - getUserDataSync(): UAUserData; + initWithUrlTypeUrl(urlType: UAURLInfoURLType, url: string): this; } -declare var UAUserCreatedNotification: string; - -declare class UAUserData extends NSObject { - static alloc(): UAUserData; // inherited from NSObject - - static new(): UAUserData; // inherited from NSObject +declare const enum UAURLInfoURLType { + Web = 0, - readonly password: string; + Video = 1, - readonly username: string; + Image = 2, } declare class UAUtils extends NSObject { @@ -9110,22 +5757,18 @@ declare class UAUtils extends NSObject { static connectionType(): string; - static createWindowWithRootViewController(rootViewController: UIViewController): UIWindow; - - static createWindowWithSceneRootViewController(scene: UIWindowScene, rootViewController: UIViewController): UIWindow; - static deviceModelName(): string; static deviceTokenStringFromDeviceToken(token: NSData): string; + static findWindowSceneAndReturnError(): UIWindowScene; + static floatIsEqualToFloatWithAccuracy(float1: number, float2: number, accuracy: number): boolean; static isAlertingPush(notification: NSDictionary): boolean; static isSilentPush(notification: NSDictionary): boolean; - static logFailedRequestWithMessageWithErrorWithResponse(request: UARequest, message: string, error: NSError, response: NSHTTPURLResponse): void; - static mainWindow(): UIWindow; static mergeFetchResults(results: NSArray | number[]): UIBackgroundFetchResult; @@ -9140,14 +5783,10 @@ declare class UAUtils extends NSObject { static permissionString(permission: UAPermission): string; - static presentInNewWindow(rootViewController: UIViewController): UIWindow; - static sha256DigestWithString(input: string): NSData; static sha256HashWithString(input: string): string; - static topController(): UIViewController; - static windowForView(view: UIView): UIWindow; } @@ -9179,12 +5818,6 @@ declare class UAViewUtils extends NSObject { static new(): UAViewUtils; // inherited from NSObject } -declare class UAWalletAction extends UAOpenExternalURLAction { - static alloc(): UAWalletAction; // inherited from NSObject - - static new(): UAWalletAction; // inherited from NSObject -} - declare class UAWebView extends WKWebView { static alloc(): UAWebView; // inherited from NSObject @@ -9220,8 +5853,6 @@ declare class UAirship extends NSObject { readonly URLAllowList: UAURLAllowList; - readonly actionRegistry: UAActionRegistry; - readonly applicationMetrics: UAApplicationMetrics; readonly channelCapture: UAChannelCapture; @@ -9236,8 +5867,6 @@ declare class UAirship extends NSObject { readonly localeManager: UALocaleManager; - readonly locationProvider: UALocationProvider; - readonly permissionsManager: UAPermissionsManager; readonly privacyManager: UAPrivacyManager; @@ -9264,8 +5893,6 @@ declare class UAirship extends NSObject { static logLevel: UALogLevel; - static readonly namedUser: UANamedUser; - static readonly push: UAPush; static readonly shared: UAirship; @@ -9281,6 +5908,16 @@ declare class UAirshipCoreResources extends NSObject { static readonly bundle: NSBundle; } +declare class UAirshipDate extends NSObject { + static alloc(): UAirshipDate; // inherited from NSObject + + static new(): UAirshipDate; // inherited from NSObject + + readonly now: Date; + + static readonly shared: UAirshipDate; +} + declare class UAirshipErrors extends NSObject { static alloc(): UAirshipErrors; // inherited from NSObject @@ -9301,38 +5938,6 @@ declare class UAirshipImageData extends NSObject { initWithDataError(data: NSData): this; } -declare class UAirshipKeychainAccess extends NSObject { - static alloc(): UAirshipKeychainAccess; // inherited from NSObject - - static new(): UAirshipKeychainAccess; // inherited from NSObject - - constructor(o: { appKey: string }); - - deleteCredentialsWithIdentifier(identifier: string): void; - - initWithAppKey(appKey: string): this; - - readCredentialsSyncWithIdentifier(identifier: string): UAirshipKeychainCredentials; - - readCredentialsWithIdentifierCompletionHandler(identifier: string, completionHandler: (p1: UAirshipKeychainCredentials) => void): void; - - writeCredentialsIdentifierCompletionHandler(credentials: UAirshipKeychainCredentials, identifier: string, completionHandler: (p1: boolean) => void): void; -} - -declare class UAirshipKeychainCredentials extends NSObject { - static alloc(): UAirshipKeychainCredentials; // inherited from NSObject - - static new(): UAirshipKeychainCredentials; // inherited from NSObject - - readonly password: string; - - readonly username: string; - - constructor(o: { username: string; password: string }); - - initWithUsernamePassword(username: string, password: string): this; -} - interface UAirshipLogHandler { logWithLogLevelMessageFileIDLineFunction(logLevel: UALogLevel, message: string, fileID: string, line: number, _function: string): void; } @@ -9348,12 +5953,10 @@ declare class UAirshipVersion extends NSObject { static new(): UAirshipVersion; // inherited from NSObject } -declare const enum URLType { - Web = 0, - - Video = 1, +declare const enum UAirshipWorkerType { + Serial = 0, - Image = 2, + Concurrent = 1, } declare const enum UrlTypes { diff --git a/tools/assets/App_Resources/iOS/Podfile b/tools/assets/App_Resources/iOS/Podfile index 3c8210b..30a64ef 100644 --- a/tools/assets/App_Resources/iOS/Podfile +++ b/tools/assets/App_Resources/iOS/Podfile @@ -1,9 +1,10 @@ -platform :ios, '13.0' +platform :ios, '14.0' post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| - config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET' + config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0' + config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' end end end diff --git a/tools/assets/App_Resources/iOS/build.xcconfig b/tools/assets/App_Resources/iOS/build.xcconfig index e77e78d..59bebd6 100644 --- a/tools/assets/App_Resources/iOS/build.xcconfig +++ b/tools/assets/App_Resources/iOS/build.xcconfig @@ -4,3 +4,4 @@ // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html // DEVELOPMENT_TEAM = YOUR_TEAM_ID; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; +IPHONEOS_DEPLOYMENT_TARGET = 14.0; \ No newline at end of file