The ParsePush type exposes the following members.
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PushJson(ILaunchActivatedEventArgs) |
Helper method to extract the full Push JSON provided to Parse, including any
non-visual custom information. Overloads exist for all data types which may be
provided by Windows, I.E. LaunchActivatedEventArgs and PushNotificationReceivedEventArgs.
Returns an empty dictionary if this push type cannot include non-visual data or
this event was not triggered by a push.
| |
PushJson(PushNotificationReceivedEventArgs) |
Helper method to extract the full Push JSON provided to Parse, including any
non-visual custom information. Overloads exist for all data types which may be
provided by Windows, I.E. LaunchActivatedEventArgs and PushNotificationReceivedEventArgs.
Returns an empty dictionary if this push type cannot include non-visual data or
this event was not triggered by a push.
| |
SendAlertAsync(String) |
Pushes a simple message to every device. This is shorthand for:
var push = new ParsePush(); push.Data = new Dictionary<string, object>{{"alert", alert}}; return push.SendAsync(); | |
SendAlertAsync(String, ParseQueryParseInstallation) |
Pushes a simple message to every device matching the target query. This is shorthand for:
var push = new ParsePush(); push.Query = query; push.Data = new Dictionary<string, object>{{"alert", alert}}; return push.SendAsync(); | |
SendAlertAsync(String, IEnumerableString) |
Pushes a simple message to every device subscribed to any of channels. This is shorthand for:
var push = new ParsePush(); push.Channels = channels; push.Data = new Dictionary<string, object>{{"alert", alert}}; return push.SendAsync(); | |
SendAlertAsync(String, String) |
Pushes a simple message to every device subscribed to channel. This is shorthand for:
var push = new ParsePush(); push.Channels = new List<string> { channel }; push.Data = new Dictionary<string, object>{{"alert", alert}}; return push.SendAsync(); | |
SendAsync |
Request a push to be sent. When this task completes, Parse has successfully acknowledged a request
to send push notifications but has not necessarily finished sending all notifications
requested. The current status of recent push notifications can be seen in your Push Notifications
console on http://parse.com
| |
SendAsync(CancellationToken) |
Request a push to be sent. When this task completes, Parse has successfully acknowledged a request
to send push notifications but has not necessarily finished sending all notifications
requested. The current status of recent push notifications can be seen in your Push Notifications
console on http://parse.com
| |
SendDataAsync(IDictionaryString, Object) |
Pushes an arbitrary payload to every device. This is shorthand for:
var push = new ParsePush(); push.Data = data; return push.SendAsync(); | |
SendDataAsync(IDictionaryString, Object, ParseQueryParseInstallation) |
Pushes an arbitrary payload to every device matching target. This is shorthand for:
var push = new ParsePush(); push.Query = query push.Data = data; return push.SendAsync(); | |
SendDataAsync(IDictionaryString, Object, IEnumerableString) |
Pushes an arbitrary payload to every device subscribed to any of channels. This is shorthand for:
var push = new ParsePush(); push.Channels = channels; push.Data = data; return push.SendAsync(); | |
SendDataAsync(IDictionaryString, Object, String) |
Pushes an arbitrary payload to every device subscribed to channel. This is shorthand for:
var push = new ParsePush(); push.Channels = new List<string> { channel }; push.Data = data; return push.SendAsync(); | |
SubscribeAsync(IEnumerableString) |
Subscribe the current installation to these channels. This is shorthand for:
var installation = ParseInstallation.CurrentInstallation; installation.AddRangeUniqueToList("channels", channels); installation.SaveAsync(); | |
SubscribeAsync(String) |
Subscribe the current installation to this channel. This is shorthand for:
var installation = ParseInstallation.CurrentInstallation; installation.AddUniqueToList("channels", channel); installation.SaveAsync(); | |
SubscribeAsync(IEnumerableString, CancellationToken) |
Subscribe the current installation to these channels. This is shorthand for:
var installation = ParseInstallation.CurrentInstallation; installation.AddRangeUniqueToList("channels", channels); installation.SaveAsync(cancellationToken); | |
SubscribeAsync(String, CancellationToken) |
Subscribe the current installation to this channel. This is shorthand for:
var installation = ParseInstallation.CurrentInstallation; installation.AddUniqueToList("channels", channel); installation.SaveAsync(cancellationToken); | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnsubscribeAsync(IEnumerableString) |
Unsubscribe the current installation from these channels. This is shorthand for:
var installation = ParseInstallation.CurrentInstallation; installation.RemoveAllFromList("channels", channels); installation.SaveAsync(); | |
UnsubscribeAsync(String) |
Unsubscribe the current installation from this channel. This is shorthand for:
var installation = ParseInstallation.CurrentInstallation; installation.Remove("channels", channel); installation.SaveAsync(); | |
UnsubscribeAsync(IEnumerableString, CancellationToken) |
Unsubscribe the current installation from these channels. This is shorthand for:
var installation = ParseInstallation.CurrentInstallation; installation.RemoveAllFromList("channels", channels); installation.SaveAsync(cancellationToken); | |
UnsubscribeAsync(String, CancellationToken) |
Unsubscribe the current installation from this channel. This is shorthand for:
var installation = ParseInstallation.CurrentInstallation; installation.Remove("channels", channel); installation.SaveAsync(cancellationToken); |
See Also