TCGBPushConfiguration Class Reference

Inherits from TCGBObject : NSObject
Declared in TCGBPush.h

Overview

The TCGBPushConfiguration class configures the behavior of TCGBPush.

Properties

  pushEnabled

Enable push

@property (nonatomic, assign) BOOL pushEnabled

Declared In

TCGBPush.h

  ADAgreement

Agreement of getting advertising push

@property (nonatomic, assign) BOOL ADAgreement

Declared In

TCGBPush.h

  ADAgreementNight

Agreement of getting advertising push at night

@property (nonatomic, assign) BOOL ADAgreementNight

Declared In

TCGBPush.h

  displayLanguageCode

Setting language of Push Message

@property (nonatomic, strong) NSString *displayLanguageCode

Declared In

TCGBPush.h

Initialization

+ pushConfigurationWithPushEnable:ADAgreement:ADAgreementNight:

Creates a TCGBPushConfiguration instance with several properties.

+ (TCGBPushConfiguration *)pushConfigurationWithPushEnable:(BOOL)enable ADAgreement:(BOOL)ADAgree ADAgreementNight:(BOOL)ADAgreeNight

Parameters

enable

whether push enable or not.

ADAgree

YES if user agree on advertising push notification.

ADAgreeNight

YES if user agree on getting advertising push notification at night.

Declared In

TCGBPush.h

+ pushConfigurationWithPushEnable:ADAgreement:ADAgreementNight:displayLanguage:

Creates a TCGBPushConfiguration instance with several properties.

+ (TCGBPushConfiguration *)pushConfigurationWithPushEnable:(BOOL)enable ADAgreement:(BOOL)ADAgree ADAgreementNight:(BOOL)ADAgreeNight displayLanguage:(NSString *)displayLanguage

Parameters

enable

whether push enable or not.

ADAgree

YES if user agree on advertising push notification.

ADAgreeNight

YES if user agree on getting advertising push notification at night.

displayLanguage

set language code for Push. (kTCPushKeyLanguage in TOAST Push SDK)

Declared In

TCGBPush.h

+ pushConfigurationWithJSONString:

Creates a TCGBPushConfiguration instance with several properties.

+ (TCGBPushConfiguration *)pushConfigurationWithJSONString:(NSString *)jsonString

Parameters

jsonString

In this string, there should be pushEnabled, adAgreement, adAgreementNight keys in the json formatted string.

Declared In

TCGBPush.h