Class AbstractPush
Base class for pushes.
Namespace: Kinvey
Assembly: Kinvey.dll
Syntax
public abstract class AbstractPush : object
Constructors
| Improve this Doc View SourceAbstractPush(Client)
Initializes a new instance of the AbstractPush class.
Declaration
public AbstractPush(Client client)
Parameters
Type | Name | Description |
---|---|---|
Client | client | Client that the user is logged in. |
Fields
| Improve this Doc View SourceANDROID
The constant representing the string with android
value.
Declaration
protected const string ANDROID = null
Field Value
Type | Description |
---|---|
System.String | The string with |
client
Client that the user is logged in.
Declaration
protected Client client
Field Value
Type | Description |
---|---|
Client | The Kinvey client. |
Methods
| Improve this Doc View SourceDisablePushAsync(String, String)
Disables pushes.
Declaration
public Task<AbstractPush.PushPayload> DisablePushAsync(string platform, string deviceId)
Parameters
Type | Name | Description |
---|---|---|
System.String | platform | Platform. |
System.String | deviceId | Device identifier. |
Returns
Type | Description |
---|---|
Task<AbstractPush.PushPayload> | The asynchronous task with push data. |
DisablePushViaRest(String, String)
Creates a request for disabling pushes.
Declaration
public AbstractPush.RemovePush DisablePushViaRest(string platform, string deviceId)
Parameters
Type | Name | Description |
---|---|---|
System.String | platform | Platform. |
System.String | deviceId | Device identifier. |
Returns
Type | Description |
---|---|
AbstractPush.RemovePush | The request for disabling pushes. |
EnablePushAsync(String, String)
Enables pushes.
Declaration
public Task<AbstractPush.PushPayload> EnablePushAsync(string platform, string deviceId)
Parameters
Type | Name | Description |
---|---|---|
System.String | platform | Platform. |
System.String | deviceId | Device identifier. |
Returns
Type | Description |
---|---|
Task<AbstractPush.PushPayload> | The asynchronous task with push data. |
EnablePushViaRest(String, String)
Creates a request for enabling pushes.
Declaration
public AbstractPush.EnablePush EnablePushViaRest(string platform, string deviceId)
Parameters
Type | Name | Description |
---|---|---|
System.String | platform | Platform. |
System.String | deviceId | Device identifier. |
Returns
Type | Description |
---|---|
AbstractPush.EnablePush | The request for enabling pushes. |