-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Wenzhi
committed
May 1, 2015
1 parent
316007a
commit b3d7182
Showing
280 changed files
with
3,292 additions
and
2,188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,47 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "Appboy-iOS-SDK" | ||
s.version = "2.11.2" | ||
s.version = "2.9.6" | ||
s.summary = "This is the Appboy iOS SDK for Mobile Marketing Automation" | ||
s.description = <<-DESC | ||
This pod has two subspecs, please ensure you only choose one of them when you are adding Appboy-iOS-SDK pod to your podfile by: | ||
pod 'Appboy-iOS-SDK/AppboyKit' | ||
* This requires Facebook-iOS-SDK in the workspace. Installing this pod will automatically install Facebook-iOS-SDK is it's not incluced in the workspace. | ||
pod 'Appboy-iOS-SDK/AppboyKitWithoutFacebookSupport' | ||
Warning: Integrating both pods will cause the SDK to be integrated twice which will cause errors! | ||
DESC | ||
s.homepage = "http://www.appboy.com" | ||
s.license = { :type => 'Commercial', :text => 'Please refer to https://github.com/Appboy/appboy-ios-sdk/blob/master/LICENSE'} | ||
s.author = { "Appboy" => "http://www.appboy.com" } | ||
s.source = { :git => 'https://github.com/Appboy/appboy-ios-sdk.git', :tag => s.version.to_s} | ||
s.platform = :ios | ||
s.ios.deployment_target = '6.0' | ||
s.ios.deployment_target = '5.1.1' | ||
s.requires_arc = false | ||
s.documentation_url = 'http://documentation.appboy.com/' | ||
s.frameworks = 'SystemConfiguration', 'QuartzCore', 'CoreImage', 'CoreText' | ||
s.weak_framework = 'CoreTelephony', 'Social', 'Accounts', 'AdSupport', 'StoreKit' | ||
s.source_files = 'AppboyKit/headers/AppboyKitLibrary/*.h', 'AppboyKit/*.m' | ||
s.exclude_files = 'AppboyKit/**/*.txt' | ||
s.resource = 'AppboyKit/Appboy.bundle' | ||
s.preserve_paths = 'AppboyKit/**/*.*' | ||
s.vendored_libraries = 'AppboyKit/libAppboyKitLibrary.a' | ||
s.dependency 'SDWebImage', '~>3.7.0' | ||
s.default_subspecs = 'AppboyKit' | ||
|
||
s.subspec 'AppboyKit' do |appboyKit| | ||
appboyKit.source_files = 'AppboyKit/headers/AppboyKitLibrary/*.h', 'AppboyKit/*.m' | ||
appboyKit.resource = 'AppboyKit/Appboy.bundle' | ||
appboyKit.preserve_paths = 'AppboyKit/**/*.*' | ||
appboyKit.vendored_libraries = 'AppboyKit/libAppboyKitLibrary.a' | ||
s.frameworks = 'SystemConfiguration', 'QuartzCore', 'CoreImage' | ||
s.weak_framework = 'CoreTelephony', 'Social', 'Twitter', 'Accounts', 'AdSupport', 'StoreKit' | ||
|
||
s.subspec 'AppboyKit' do |aks| | ||
aks.source_files = 'AppboyKit/headers/AppboyKitLibrary/*.h', 'AppboyKit/*.m' | ||
aks.exclude_files = 'AppboyKit/**/*.txt' | ||
aks.resource = 'AppboyKit/Appboy.bundle' | ||
aks.preserve_paths = 'AppboyKit/**/*.*' | ||
aks.vendored_libraries = 'AppboyKit/libAppboyKitLibrary.a' | ||
aks.dependency 'Facebook-iOS-SDK', '~> 3.16.2' | ||
aks.dependency 'SDWebImage', '>= 3.7.0' | ||
end | ||
|
||
s.subspec 'AppboyKitWithoutFacebookSupport' do |appboyKitWithoutFacebookSupport| | ||
appboyKitWithoutFacebookSupport.source_files = 'AppboyKit/headers/AppboyKitLibrary/*.h', 'AppboyKit/*.m' | ||
appboyKitWithoutFacebookSupport.resource = 'AppboyKit/Appboy.bundle' | ||
appboyKitWithoutFacebookSupport.preserve_paths = 'AppboyKit/**/*.*' | ||
appboyKitWithoutFacebookSupport.vendored_libraries = 'AppboyKit/libAppboyKitLibrary.a' | ||
s.subspec 'AppboyKitWithoutFacebookSupport' do |akwfss| | ||
akwfss.source_files = 'AppboyKitWithoutFacebookSupport/headers/AppboyKitLibrary/*.h', 'AppboyKitWithoutFacebookSupport/*.m' | ||
akwfss.exclude_files = 'AppboyKitWithoutFacebookSupport/**/*.txt' | ||
akwfss.resource = 'AppboyKitWithoutFacebookSupport/Appboy.bundle' | ||
akwfss.preserve_paths = 'AppboyKitWithoutFacebookSupport/**/*.*' | ||
akwfss.vendored_libraries = 'AppboyKitWithoutFacebookSupport/libAppboyKitLibrary.a' | ||
akwfss.dependency 'SDWebImage', '>= 3.7.0' | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.23 KB
(170%)
AppboyKit/Appboy.bundle/ABKBannerCardCell.nib/objects-8.0+.nib
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+862 Bytes
(150%)
AppboyKit/Appboy.bundle/ABKBannerCardCell.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+46 Bytes
(100%)
AppboyKit/Appboy.bundle/ABKCaptionedMessageCardCell.nib/objects.nib
Binary file not shown.
Binary file modified
BIN
+46 Bytes
(100%)
AppboyKit/Appboy.bundle/ABKCaptionedMessageCardCell.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+2.97 KB
(150%)
AppboyKit/Appboy.bundle/ABKCrossPromotionCardCell.nib/objects-8.0+.nib
Binary file not shown.
Binary file modified
BIN
+2.98 KB
(150%)
AppboyKit/Appboy.bundle/ABKCrossPromotionCardCell.nib/objects.nib
Binary file not shown.
Binary file modified
BIN
+2.91 KB
(150%)
AppboyKit/Appboy.bundle/ABKCrossPromotionCardCell.nib/runtime.nib
Binary file not shown.
Binary file added
BIN
+3.89 KB
AppboyKit/Appboy.bundle/ABKDefaultSlideupViewController.nib/objects-8.0+.nib
Binary file not shown.
Binary file added
BIN
+3.89 KB
AppboyKit/Appboy.bundle/ABKDefaultSlideupViewController.nib/objects.nib
Binary file not shown.
Binary file added
BIN
+3.89 KB
AppboyKit/Appboy.bundle/ABKDefaultSlideupViewController.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+1.33 KB
(160%)
AppboyKit/Appboy.bundle/ABKFeedNoConnectionView.nib/objects-8.0+.nib
Binary file not shown.
Binary file modified
BIN
+1.33 KB
(160%)
AppboyKit/Appboy.bundle/ABKFeedNoConnectionView.nib/objects.nib
Binary file not shown.
Binary file modified
BIN
+1.33 KB
(160%)
AppboyKit/Appboy.bundle/ABKFeedNoConnectionView.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+2.35 KB
(160%)
AppboyKit/Appboy.bundle/ABKFeedbackContentView.nib/objects-8.0+.nib
Binary file not shown.
Binary file modified
BIN
+2.35 KB
(160%)
AppboyKit/Appboy.bundle/ABKFeedbackContentView.nib/objects.nib
Binary file not shown.
Binary file modified
BIN
+2.34 KB
(160%)
AppboyKit/Appboy.bundle/ABKFeedbackContentView.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+2.54 KB
(150%)
AppboyKit/Appboy.bundle/ABKFeedbackEmailFacebookViewPortrait.nib/objects-8.0+.nib
Binary file not shown.
Binary file modified
BIN
+2.52 KB
(150%)
AppboyKit/Appboy.bundle/ABKFeedbackEmailFacebookViewPortrait.nib/objects.nib
Binary file not shown.
Binary file modified
BIN
+2.51 KB
(150%)
AppboyKit/Appboy.bundle/ABKFeedbackEmailFacebookViewPortrait.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+734 Bytes
(140%)
AppboyKit/Appboy.bundle/ABKFeedbackNavBar.nib/objects-8.0+.nib
Binary file not shown.
Binary file modified
BIN
+734 Bytes
(140%)
AppboyKit/Appboy.bundle/ABKFeedbackNavBar.nib/objects.nib
Binary file not shown.
Binary file modified
BIN
+732 Bytes
(140%)
AppboyKit/Appboy.bundle/ABKFeedbackNavBar.nib/runtime.nib
Binary file not shown.
Binary file removed
BIN
-4.96 KB
AppboyKit/Appboy.bundle/ABKInAppMessageFullViewController.nib/objects-8.0+.nib
Binary file not shown.
Binary file removed
BIN
-4.96 KB
AppboyKit/Appboy.bundle/ABKInAppMessageFullViewController.nib/objects.nib
Binary file not shown.
Binary file removed
BIN
-4.96 KB
AppboyKit/Appboy.bundle/ABKInAppMessageFullViewController.nib/runtime.nib
Binary file not shown.
Binary file removed
BIN
-4.96 KB
AppboyKit/Appboy.bundle/ABKInAppMessageFullViewController_iPad.nib/objects-8.0+.nib
Binary file not shown.
Binary file removed
BIN
-4.96 KB
AppboyKit/Appboy.bundle/ABKInAppMessageFullViewController_iPad.nib/objects.nib
Binary file not shown.
Binary file removed
BIN
-4.97 KB
AppboyKit/Appboy.bundle/ABKInAppMessageFullViewController_iPad.nib/runtime.nib
Binary file not shown.
Binary file removed
BIN
-5.19 KB
AppboyKit/Appboy.bundle/ABKInAppMessageModalViewController.nib/objects-8.0+.nib
Binary file not shown.
Binary file removed
BIN
-5.15 KB
AppboyKit/Appboy.bundle/ABKInAppMessageModalViewController.nib/objects.nib
Binary file not shown.
Binary file removed
BIN
-5.11 KB
AppboyKit/Appboy.bundle/ABKInAppMessageModalViewController.nib/runtime.nib
Binary file not shown.
Binary file removed
BIN
-5.19 KB
AppboyKit/Appboy.bundle/ABKInAppMessageModalViewController_iPad.nib/objects-8.0+.nib
Binary file not shown.
Binary file removed
BIN
-5.19 KB
AppboyKit/Appboy.bundle/ABKInAppMessageModalViewController_iPad.nib/objects.nib
Binary file not shown.
Binary file removed
BIN
-5.15 KB
AppboyKit/Appboy.bundle/ABKInAppMessageModalViewController_iPad.nib/runtime.nib
Binary file not shown.
Binary file removed
BIN
-4.11 KB
AppboyKit/Appboy.bundle/ABKInAppMessageSlideupViewController.nib/objects-8.0+.nib
Binary file not shown.
Binary file removed
BIN
-4.11 KB
AppboyKit/Appboy.bundle/ABKInAppMessageSlideupViewController.nib/objects.nib
Binary file not shown.
Binary file removed
BIN
-4.1 KB
AppboyKit/Appboy.bundle/ABKInAppMessageSlideupViewController.nib/runtime.nib
Binary file not shown.
Binary file removed
BIN
-4.11 KB
AppboyKit/Appboy.bundle/ABKInAppMessageSlideupViewController_iPad.nib/objects-8.0+.nib
Binary file not shown.
Binary file removed
BIN
-4.11 KB
AppboyKit/Appboy.bundle/ABKInAppMessageSlideupViewController_iPad.nib/objects.nib
Binary file not shown.
Binary file removed
BIN
-4.11 KB
AppboyKit/Appboy.bundle/ABKInAppMessageSlideupViewController_iPad.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+767 Bytes
(150%)
AppboyKit/Appboy.bundle/ABKSpinnerView.nib/objects-8.0+.nib
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+2.25 KB
(160%)
AppboyKit/Appboy.bundle/ABKTextAnnouncementCardCell.nib/objects-8.0+.nib
Binary file not shown.
Binary file modified
BIN
+2.29 KB
(160%)
AppboyKit/Appboy.bundle/ABKTextAnnouncementCardCell.nib/objects.nib
Binary file not shown.
Binary file modified
BIN
+2.24 KB
(160%)
AppboyKit/Appboy.bundle/ABKTextAnnouncementCardCell.nib/runtime.nib
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/ar.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/da.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/de.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/en.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/es-419.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/es-MX.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/es.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/et.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/fi.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/fil.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/hi.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/id.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/it.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/ja.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/km.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/ko.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/lo.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/ms.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/my.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/nb.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/nl.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/pl.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/pt-PT.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/pt.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/ru.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/sv.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/th.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/vi.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/zh-Hans.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
AppboyKit/Appboy.bundle/zh-Hant.lproj/LocalizedAppboyUIString.strings
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
/* | ||
* There are two possible values which control where the slideup will enter the view. | ||
* | ||
* ABKSlideupFromBottom - This is the default behavior. | ||
* The slideup will slide onto the screen from the bottom edge of the view and will hide by sliding back down off | ||
* the bottom of the screen. | ||
* | ||
* ABKSlideupFromTop - The slideup will slide onto the screen from the top edge of the view and will hide by sliding | ||
* back up off the top of the screen. | ||
*/ | ||
typedef NS_ENUM(NSInteger, ABKSlideupAnchor) { | ||
ABKSlideupFromTop, | ||
ABKSlideupFromBottom | ||
}; | ||
|
||
/* | ||
* The ABKSlideupDismissType defines how the slideup can be dismissed. | ||
* | ||
* ABKSlideupDismissAutomatically - This is the default behavior. It will dismiss after the length of time defined by | ||
* the duration property. Slideups of this type can also be dismissed by swiping. | ||
* | ||
* ABKSlideupDismissBySwipe - The slideup will stay on the screen indefinitely unless dismissed by swiping. | ||
*/ | ||
typedef NS_ENUM(NSInteger, ABKSlideupDismissType) { | ||
ABKSlideupDismissAutomatically, | ||
ABKSlideupDismissBySwipe | ||
}; | ||
|
||
/* | ||
* The ABKSlideupClickActionType defines the action that will be performed when the Slideup is clicked. | ||
* | ||
* ABKSlideupDisplayNewsFeed - This is the default behavior. It will open a modal view of Appboy news feed. | ||
* | ||
* ABKSlideupRedirectToURI - The slideup will try to redirect to the uri defined by the uri property. Only when the uri | ||
* is an HTTP URL, a modal web view will be displayed. If the uri is a protocol uri, the slideup will redirect to the | ||
* protocol uri. | ||
* | ||
* ABKSlideupNoneClickAction - The slideup will do nothing but dismiss itself. | ||
*/ | ||
typedef NS_ENUM(NSInteger, ABKSlideupClickActionType) { | ||
ABKSlideupDisplayNewsFeed, | ||
ABKSlideupRedirectToURI, | ||
ABKSlideupNoneClickAction | ||
}; | ||
|
||
@interface ABKSlideup : NSObject | ||
|
||
/* | ||
* This property defines the message displayed within the slideup. | ||
*/ | ||
@property (nonatomic, copy) NSString *message; | ||
|
||
/* | ||
* If hideChevron equals YES, the slideup will not render the chevron on the right side of the slideup. | ||
* The chevron is a useful visual cue for the user that more content may be reached by tapping the slideup. | ||
*/ | ||
@property (nonatomic, assign) BOOL hideChevron; | ||
|
||
/* | ||
* This property carries extra data in the form of an NSDictionary which can be sent down via the Appboy Dashboard. | ||
* You may want to design and implement a custom handler to access this data depending on your use-case. | ||
*/ | ||
@property (nonatomic, retain) NSDictionary *extras; | ||
|
||
/* | ||
* slideupAnchor defines the position of the slideup on screen. | ||
* The ABKSlideupAnchor enum documentation above offers additional details. | ||
*/ | ||
@property (nonatomic, assign) ABKSlideupAnchor slideupAnchor; | ||
|
||
/* | ||
* This property defines the number of seconds before the slideup is automatically dismissed. | ||
*/ | ||
@property (nonatomic, assign) NSTimeInterval duration; | ||
|
||
/* | ||
* slideupDismissType defines the dismissal behavior of the slideup. | ||
* See the above documentation for ABKSlideupDismissType for additional details. | ||
*/ | ||
@property (nonatomic, assign) ABKSlideupDismissType slideupDismissType; | ||
|
||
/* | ||
* This property defines the action that will be performed when the Slideup is clicked. | ||
* See the ABKSlideupClickActionType enum documentation above offers additional details. | ||
*/ | ||
@property (nonatomic, assign, readonly) ABKSlideupClickActionType slideupClickActionType; | ||
|
||
/* | ||
* When the slideup's slideupClickActionType is ABKSlideupRedirectToURI, clicking on the slideup will redirect to the uri defined | ||
* in this property. | ||
* | ||
* This property can be a HTTP URI or a protocol URI. | ||
*/ | ||
@property (nonatomic, copy, readonly) NSURL *uri; | ||
|
||
/* | ||
* If you're handling slideups completely on your own (returning YES from onSlideupReceived), you should still report | ||
* impressions and clicks on the slideup back to Appboy with these methods so that your campaign reporting features | ||
* still work in the dashboard. | ||
* | ||
* Note: Each slideup can log at most one impression and at most one click. | ||
*/ | ||
- (void) logSlideupImpression; | ||
- (void) logSlideupClicked; | ||
|
||
/* | ||
* This method will set the slideupClickActionType to ABKSlideupRedirectToURI. The parameter uri must not be nil. | ||
* The method will set the uri property as well. | ||
*/ | ||
- (void) setSlideupClickActionToUri:(NSURL *)uri; | ||
|
||
/* | ||
* This method will set the slideupClickActionType to ABKSlideupDisplayNewsFeed. | ||
* The method will set the uri property to nil. | ||
*/ | ||
- (void) setSlideupClickActionToNewsFeed; | ||
|
||
/* | ||
* This method will set the slideupClickActionType to ABKSlideupNoneClickAction. | ||
* The method will set the uri property to nil. | ||
*/ | ||
- (void) setSlideupClickActionToNone; | ||
|
||
/* | ||
* Serializes the slideup to binary data for use by wrappers such as Appboy's Unity SDK for iOS. | ||
*/ | ||
- (NSData *) serializeToData; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
#import <Foundation/Foundation.h> | ||
#import "ABKSlideup.h" | ||
#import "ABKSlideupControllerDelegate.h" | ||
|
||
/* Note: This class is not thread safe and all class methods should be called from the main thread.*/ | ||
@interface ABKSlideupController : NSObject | ||
|
||
/*! | ||
* Setting the delegate allows your app to control how, when, and if slideups are displayed. | ||
* Your app can set the delegate to override the default behavior of the ABKSlideupController. See | ||
* ABKSlideupControllerDelegate.h for more information. | ||
*/ | ||
@property (nonatomic, retain) id <ABKSlideupControllerDelegate> delegate; | ||
|
||
/*! | ||
* supportedOrientationMasks allows you to change which orientation masks the slideup (in-app message) supports. | ||
* Slideups (in-app messages) will normally support the orientations specified in the app settings, but the method | ||
* supportedInterfaceOrientations may optionally override that. The value of supportedOrientationMasks will be returned | ||
* in supportedInterfaceOrientations in the slideup view controller. | ||
* | ||
* The default value of supportedOrientationMasks is UIInterfaceOrientationMaskAll. This property only works in iOS 6 and later. | ||
* | ||
*/ | ||
@property (nonatomic, assign) UIInterfaceOrientationMask supportedOrientationMasks; | ||
|
||
/*! | ||
* supportedOrientations allows you to change which orientation the slideup (in-app message) supports. | ||
* Slideups (in-app messages) will normally support the orientations specified in the app settings, but method | ||
* preferredInterfaceOrientationForPresentation may optionally override that. The value of supportedOrientations will be | ||
* returned in preferredInterfaceOrientationForPresentation in slideup view controller. | ||
* | ||
* The default value of supportedOrientations includes all orientations: UIInterfaceOrientationPortrait, | ||
* UIInterfaceOrientationLandscapeRight, UIInterfaceOrientationLandscapeLeft and UIInterfaceOrientationPortraitUpsideDown. | ||
* This property only works in iOS 6 and later. | ||
*/ | ||
@property (nonatomic, assign) UIInterfaceOrientation supportedOrientations; | ||
|
||
/*! | ||
* @param delegate The slideup delegate that implements the ABKSlideupControllerDelegate methods. If the delegate is | ||
* nil, it acts as one which always returns ABKDisplaySlideupNow and doesn't implement all other delegate methods. | ||
* | ||
* @discussion This method grabs the next slideup from the slideup stack, if there is one, and displays it with | ||
* the provided delegate. The delegate must return a ABKSlideupDisplayChoice that defines how the slideup will be | ||
* handled. Please refer to the ABKSlideupDisplayChoice enum documentation for more detailed information. | ||
* | ||
* If there are no slideups available this returns immediately having taken no action. | ||
*/ | ||
- (void) displayNextSlideupWithDelegate:(id<ABKSlideupControllerDelegate>)delegate; | ||
|
||
/*! | ||
* @return The number of slideups that are locally waiting to be displayed. | ||
* | ||
* @discussion Use this method to check how many slideups are waiting to be displayed and call | ||
* displayNextSlideupWithDelegate: at to display it. If a slideup is currently being displayed, it will not be included | ||
* in the count. | ||
* | ||
* Note: Returning ABKDisplaySlideupLater in the beforeSlideupDisplayed: delegate method will put the slideup back onto | ||
* the stack and this will be reflected in slideupsRemainingOnStack. | ||
*/ | ||
- (NSInteger) slideupsRemainingOnStack; | ||
|
||
/*! | ||
* @param newSlideup A new slideup that will be added into the top of the stack of slideups that haven't been displayed yet. | ||
* | ||
* @discussion This method allows you to display a custom slideup. It adds the slideup object to the top of the slideup stack | ||
* and tries to display immediately. | ||
* | ||
* Note: Clicks and impressions of slideups added by this method will not be collected by Appboy and will not be | ||
* reflected on the dashboard. | ||
*/ | ||
- (void) addSlideup:(ABKSlideup *)newSlideup; | ||
|
||
/*! | ||
* @param animated If YES, the slideup will slide off the screen. If NO, the slideup will disappear immediately without | ||
* an animation. | ||
* | ||
* @discussion If there is a slideup currently being displayed, calling this method will hide it. The animated parameter | ||
* controls whether or not the slideup will be animated away. This method does nothing if no slideup is currently being | ||
* displayed. | ||
* | ||
* Note: This will not fire the onSlideupDismissed: delegate method. | ||
*/ | ||
- (void) hideCurrentSlideup:(BOOL)animated; | ||
@end |
Oops, something went wrong.