Skip to content

Commit

Permalink
fixed Branch Universal Object methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jestoniyap committed Jan 25, 2016
1 parent 703ea74 commit df475fa
Show file tree
Hide file tree
Showing 4 changed files with 538 additions and 44 deletions.
33 changes: 31 additions & 2 deletions src/ios/BranchSDK.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
//
// BranchSDK.h
// Branch-TestBed
// Cordova-Ionic-PhoneGap-Deferred-Deep-Linking-SDK
//
// Created by Lysis on 1/14/16.
// Copyright © 2016 Branch Metrics. All rights reserved.
//

#import <Branch/Branch.h>
#import <Branch/BranchLinkProperties.h>
#import <Branch/BranchUniversalObject.h>
#import <Cordova/CDV.h>

@interface BranchSDK : CDVPlugin

@property (copy) NSString *canonicalIdentifier;
@property (copy) NSString *title;
@property (copy) NSString *contentDescription;
@property (copy) NSString *imageUrl;
@property (copy) NSString *type;
@property (copy) NSArray *keywords;
@property (copy) NSDictionary *metadata;
@property (copy) NSDate *expirationDate;

@property (strong, nonatomic) BranchUniversalObject *branchUniversalObj;

// BranchSDK Basic Methods
- (void)initSession:(CDVInvokedUrlCommand*)command;
- (void)setDebug:(CDVInvokedUrlCommand*)command;
- (void)getAutoInstance:(CDVInvokedUrlCommand*)command;
Expand All @@ -20,4 +34,19 @@
- (void)userCompletedAction:(CDVInvokedUrlCommand*)command;
- (void)logout:(CDVInvokedUrlCommand*)command;

// Branch Referral Reward System
- (void)loadRewards:(CDVInvokedUrlCommand*)command;
- (void)redeemRewards:(CDVInvokedUrlCommand*)command;
- (void)getCreditHistory:(CDVInvokedUrlCommand*)command;

// Branch Universal Object Methods
- (void)createBranchUniversalObject:(CDVInvokedUrlCommand*)command;
- (void)initWithCanonicalIdentifier:(CDVInvokedUrlCommand*)command;
- (void)initWithTitle:(CDVInvokedUrlCommand*)command;
- (void)addMetadata:(CDVInvokedUrlCommand*)command;
- (void)registerView:(CDVInvokedUrlCommand*)command;
- (void)generateShortUrl:(CDVInvokedUrlCommand*)command;
- (void)showShareSheet:(CDVInvokedUrlCommand*)command;
- (void)listOnSpotlight:(CDVInvokedUrlCommand*)command;

@end
Loading

0 comments on commit df475fa

Please sign in to comment.