Mobile Deep Pages Creation

Prerequisites - Installing SDK - import

Steps to Follow:

1- create array of your image slider

 //if you want create single page you can send only one image
NSArray *imagesUrl = [NSArray arrayWithObjects:<—your image url —>, nil];

2- create buttons that you want to appear

MobileLandingPageButton *button1 = [[MobileLandingPageButton alloc]
                                    initWithTitle: <title-for-your-button>
                                    iosTarget: <your-iOS-trigger-point>
                                    andAndroid: <your-android-point-trigger>
                                    andWeb: <your-we-trigger-point>];

3- create social media butons with it is target

SocialmediaSettings *socialMediaSetting = [[SocialmediaSettings alloc]
                                            initWithTitle:<title>
                                            andDescription:<and-description>
                                            andImage:<and-your-image-url>];

4- create landing page object

MobileLandingPage *tempLandingPage = [[MobileLandingPage alloc]
                                    initWithLogo: <logo-image-url>
                                    andHeader: <landing-page-header>
                                    andParagraph: <landing-page-header>
                                    withSliderUrlImages:imagesUrl
                                    andButtons: [NSArray arrayWithObjects: button1,nil]
                                    andSocialMediaSetting:socialMediaSetting
                                    language:@"en"
                                    andSubscription: <your-subscription>
                                    andimage: <image-url>
                                    andlabel: <lable--text>;
[AppGain createLandingPageWithObject:tempLandingPage whenFinish:^(NSURLResponse *response, NSMutableDictionary *result) {
    ///result it is come back from background thread to main thread direct.
    // NSLog(@“%@",response);
    // NSLog(@"%@",result);
    //
}];

Swift

let button1 : MobileLandingPageButton = MobileLandingPageButton(title: <title-  text>,
    iosTarget: <ios-target-url>,
    andAndroid: <mobile-android-target>,
    andWeb: <web-target-url>)

let socialMediaSetting : SocialmediaSettings = SocialmediaSettings.init(title: <TITLE-TEXT>, andDescription: <settting-description-text>, andImage: <image-url>)

let landingObject : MobileLandingPage = MobileLandingPage.init(logo: <logo-url>,    andHeader: <header-text>,
        andParagraph: <paragraph-text>,
        withSliderUrlImages: <images-urls-array>,
        andButtons: <buttons-array>,
        andSocialMediaSetting: <social-media-settingobject>,
        language: <language-des>,
        andSubscription: <subscription-text>,
        andimage: <image-url-text>,
        andlabel: <label-text>)

AppGain.createLandingPage(with: <#T##LandingPageObject!#) { (response, result) in
// response and result here is thread safe
}