“We lost the content of this page for some reason. We apologize for the inconvenience caused and assure you that we are working on rebuilding it from scratch. Please find below the detailed content that users are looking for.”
Features
- Powerful Airship content management and delivery capabilities
- Seamless integration with existing Airship SDK
- Customizable content rendering
- Efficiently manage and update content in real-time
- Dynamic personalization capabilities
- Effortless multi-channel content delivery
Quick Start
Follow these steps to quickly integrate Airship Content Extension into your project:
- Install the Airship Content Extension SDK via Cocoapods:
“`ruby
pod ‘AirshipContentExtension’
“`
- Add the necessary imports to your Swift or Objective-C file.
“`swift
import AirshipContentExtension
“`
“`objective-c
#import
“`
- Initialize Airship Content Extension with your configuration:
“`swift
let config = UAConfig.default()
config.messageCenterStyle = .custom
UAirship.takeOff(config)
let airshipContentExtension = UAAirshipContentExtension()
airshipContentExtension.register()
“`
“`objective-c
UAConfig *config = [UAConfig defaultConfig];
config.messageCenterStyle = CHMessageCenterStyleCustom;
[UAirship takeOff:config];
UAAirshipContentExtension *contentExtension = [UAAirshipContentExtension shared];
[contentExtension register];
“`
Code Pages
UAActionUIViewController
The UAActionUIViewController class is responsible for presenting the message content. You can customize its behavior by subclassing it and overriding the necessary methods.
UAInboxMessage.h
UAInboxMessage class contains information about a particular message, including its unique identifier, title, sent date, and list of actions.
Sample Code
Refer to the following sample code to better understand implementation details:
“`swift
// CustomActionController.swift
import AirshipContentExtension
class CustomActionController: UAActionViewController {
override func viewController(with message: UAInboxMessage, contentView _nullable: UIView?) -> UIViewController? {
// Custom implementation
}
override func accepts(_ message: UAInboxMessage) -> Bool {
// Custom implementation
}
override func display(_ message: UAInboxMessage, with navigationController: UINavigationController) {
// Custom implementation
}
}
“`
“`objective-c
// CustomActionController.m
#import “AirshipContentExtension.h”
@interface CustomActionController : UIViewController
@end
@implementation CustomActionController
– (nullable UIViewController *)viewControllerForMessage:(UAInboxMessage *)message contentView:(nullable UIView *)contentView {
// Custom implementation
}
– (BOOL)acceptsMessage:(UAInboxMessage *)message {
// Custom implementation
}
– (void)displayMessage:(UAInboxMessage *)message inNavigationController:(UINavigationController *)navigationController {
// Custom implementation
}
@end
“`
Conclusion
We hope this guide has provided you with the necessary information to rebuild the lost content of this page. If you have any further questions, please reach out to our support team for assistance. We appreciate your patience.
“Thank you for choosing Airship Content Extension. We look forward to helping you enhance your content management and delivery capabilities.”