LuxChat  2.0
Instant messenger for iOS
Instance Methods | Class Methods | List of all members
PFPush(Deprecated) Category Reference

#import <PFPush+Deprecated.h>

Instance Methods

(void) - sendPushInBackgroundWithTarget:selector:
 

Class Methods

(void) + sendPushMessageToChannelInBackground:withMessage:target:selector:
 
More...
 
(void) + sendPushDataToChannelInBackground:withData:target:selector:
 
(void) + getSubscribedChannelsInBackgroundWithTarget:selector:
 
More...
 
(void) + subscribeToChannelInBackground:target:selector:
 
(void) + unsubscribeFromChannelInBackground:target:selector:
 

Detailed Description

Copyright (c) 2015-present, Parse, LLC. All rights reserved.

This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. This category lists all methods of PFPush that are deprecated and will be removed in the near future.

Method Documentation

+ (void) getSubscribedChannelsInBackgroundWithTarget: (id)  target
selector: ("Please use `PFPush.+getSubscribedChannelsInBackgroundWithBlock:` instead.")  PARSE_DEPRECATED 



Asynchronously* get all the channels that this device is subscribed to.

Parameters
targetThe object to call selector on.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(NSSet *)result error:(NSError *)error. error will be nil on success and set if there was an error.
Deprecated:
Please use PFPush.+getSubscribedChannelsInBackgroundWithBlock: instead.
+ (void) sendPushDataToChannelInBackground: (NSString *)  channel
withData: (NSDictionary *)  data
target: (nullable id)  target
selector: ("Please use `PFPush.+sendPushDataToChannelInBackground:withData:block:` instead.")  PARSE_DEPRECATED 

Asynchronously* send a push message with arbitrary data to a channel.

See the guide for information about the dictionary structure.

Parameters
channelThe channel to send to. The channel name must start with a letter and contain only letters, numbers, dashes, and underscores.
dataThe data to send.
targetThe object to call selector on.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.
Deprecated:
Please use PFPush.+sendPushDataToChannelInBackground:withData:block: instead.
- (void) sendPushInBackgroundWithTarget: (nullable id)  target
selector: ("Please use `PFPush.-sendPushInBackgroundWithTarget:selector:` instead.")  PARSE_DEPRECATED 

Asynchronously* send this push message and calls the given callback.

Parameters
targetThe object to call selector on.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.
Deprecated:
Please use PFPush.-sendPushInBackgroundWithTarget:selector: instead.
+ (void) sendPushMessageToChannelInBackground: (NSString *)  channel
withMessage: (NSString *)  message
target: (nullable id)  target
selector: ("Please use `PFPush.+sendPushMessageToChannelInBackground:withMessage:block:` instead.")  PARSE_DEPRECATED 



Asynchronously* send a push message to a channel.

Parameters
channelThe channel to send to. The channel name must start with a letter and contain only letters, numbers, dashes, and underscores.
messageThe message to send.
targetThe object to call selector on.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.
Deprecated:
Please use PFPush.+sendPushMessageToChannelInBackground:withMessage:block: instead.
+ (void) subscribeToChannelInBackground: (NSString *)  channel
target: (nullable id)  target
selector: ("Please use `PFPush.+subscribeToChannelInBackground:block:` instead.")  PARSE_DEPRECATED 

Asynchronously* subscribes the device to a channel of push notifications and calls the given callback.

Parameters
channelThe channel to subscribe to. The channel name must start with a letter and contain only letters, numbers, dashes, and underscores.
targetThe object to call selector on.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.
Deprecated:
Please use PFPush.+subscribeToChannelInBackground:block: instead.
+ (void) unsubscribeFromChannelInBackground: (NSString *)  channel
target: (nullable id)  target
selector: ("Please use `PFPush.+unsubscribeFromChannelInBackground:block:` instead.")  PARSE_DEPRECATED 

Asynchronously* unsubscribes the device from a channel of push notifications and calls the given callback.

Parameters
channelThe channel to unsubscribe from.
targetThe object to call selector on.
selectorThe selector to call. It should have the following signature: (void)callbackWithResult:(NSNumber *)result error:(NSError *)error. error will be nil on success and set if there was an error. [result boolValue] will tell you whether the call succeeded or not.
Deprecated:
Please use PFPush.+unsubscribeFromChannelInBackground:block: instead.

The documentation for this category was generated from the following file: