BmobPush Class Reference
Inherits from | NSObject |
---|---|
Declared in | BmobPush.h |
– setQuery:
设置查询里的约束条件
- (void)setQuery:(BmobQuery *)query
Parameters
query |
一般是Installation表的查询 |
---|
Declared In
BmobPush.h
– setChannels:
设置多个订阅频道
- (void)setChannels:(NSArray *)channels
Parameters
channel |
多个订阅频道放在数组里面 |
---|
Declared In
BmobPush.h
– setChannel:
设置单个订阅频道
- (void)setChannel:(NSString *)channel
Parameters
channels |
订阅的频道 |
---|
Declared In
BmobPush.h
– setMessage:
设置推送消息
- (void)setMessage:(NSString *)message
Parameters
message |
推送消息的内容 |
---|
Declared In
BmobPush.h
– setData:
设置推送消息
- (void)setData:(NSDictionary *)data
Parameters
data |
推送消息的内容,data里要包含alert键及对应的推送消息内容 |
---|
Declared In
BmobPush.h
– expireAtDate:
设置过期的绝对日期时间
- (void)expireAtDate:(NSDate *)date
Parameters
date |
过期的日期时间 |
---|
Declared In
BmobPush.h
– expireAfterTimeInterval:
设置多少秒后过期
- (void)expireAfterTimeInterval:(NSTimeInterval)timeInterval
Parameters
timeInterval |
多少秒过期, |
---|
Declared In
BmobPush.h
– sendPushInBackgroundWithBlock:
异步发送推送
- (void)sendPushInBackgroundWithBlock:(BmobBooleanResultBlock)block
Parameters
block |
返回是否成功及错误信息 |
---|
Declared In
BmobPush.h
+ sendPushMessageToChannelInBackground:withMessage:
异步发送推送
+ (void)sendPushMessageToChannelInBackground:(NSString *)channel withMessage:(NSString *)message
Parameters
channel |
订阅频道 |
---|---|
message |
推送消息内容 |
Declared In
BmobPush.h
+ sendPushMessageToChannelInBackground:withMessage:block:
异步发送推送
+ (void)sendPushMessageToChannelInBackground:(NSString *)channel withMessage:(NSString *)message block:(BmobBooleanResultBlock)block
Parameters
channel |
订阅频道 |
---|---|
message |
推送消息内容 |
block |
推送消息的结果,是否成功以及失败的错误信息 |
Declared In
BmobPush.h
+ sendPushMessageToQueryInBackground:withMessage:
异步发送推送
+ (void)sendPushMessageToQueryInBackground:(BmobQuery *)query withMessage:(NSString *)message
Parameters
query |
Installation表查询里的约束条件 |
---|---|
message |
推送消息内容 |
Declared In
BmobPush.h
+ sendPushMessageToQueryInBackground:withMessage:block:
异步发送推送
+ (void)sendPushMessageToQueryInBackground:(BmobQuery *)query withMessage:(NSString *)message block:(BmobBooleanResultBlock)block
Parameters
query |
查询里的约束条件 |
---|---|
message |
推送消息内容 |
block |
推送消息的结果,是否成功以及失败的错误信息 |
Declared In
BmobPush.h
+ sendPushDataToChannelInBackground:withData:
异步发送推送
+ (void)sendPushDataToChannelInBackground:(NSString *)channel withData:(NSDictionary *)data
Parameters
channel |
订阅频道 |
---|---|
data |
推送消息内容,data里要包含alert键及对应的推送消息内容 |
Declared In
BmobPush.h
+ sendPushDataToChannelInBackground:withData:block:
异步发送推送
+ (void)sendPushDataToChannelInBackground:(NSString *)channel withData:(NSDictionary *)data block:(BmobBooleanResultBlock)block
Parameters
channel |
订阅频道 |
---|---|
data |
推送消息内容,data里要包含alert键及对应的推送消息内容 |
block |
推送消息的结果,是否成功以及失败的错误信息 |
Declared In
BmobPush.h
+ sendPushDataToQueryInBackground:withData:
异步发送推送
+ (void)sendPushDataToQueryInBackground:(BmobQuery *)query withData:(NSDictionary *)data
Parameters
query |
Installation表查询里的约束条件 |
---|---|
data |
推送消息内容,data里要包含alert键及对应的推送消息内容 |
Declared In
BmobPush.h
+ sendPushDataToQueryInBackground:withData:block:
异步发送推送
+ (void)sendPushDataToQueryInBackground:(BmobQuery *)query withData:(NSDictionary *)data block:(BmobBooleanResultBlock)block
Parameters
query |
Installation表查询里的约束条件 |
---|---|
data |
推送消息内容,data里要包含alert键及对应的推送消息内容 |
block |
推送消息的结果,是否成功以及失败的错误信息 |
Declared In
BmobPush.h
+ handlePush:
弹出消息推送
+ (void)handlePush:(NSDictionary *)userInfo
Parameters
userInfo |
推送消息内容 |
---|
Declared In
BmobPush.h