public class PushManager extends Object
Modifier and Type | Field and Description |
---|---|
static int |
REMOTE_GCM
Identifier for remote endpoints using Google Cloud Messaging
|
static int |
REMOTE_POST
Identifier for remote endpoints using HTTP POST
|
static int |
REMOTE_UNKNOWN
Identifier for remote endpoints using unknown protocols
|
Constructor and Description |
---|
PushManager() |
Modifier and Type | Method and Description |
---|---|
static int |
determineEndpoint(String remote)
Determines the type of endpoint
|
static void |
pushContextEvent(String callback,
String id,
ContextEvent event) |
static void |
pushServiceCall(String callback,
String id,
ServiceCall call,
String origin) |
public static final int REMOTE_POST
public static final int REMOTE_GCM
public static final int REMOTE_UNKNOWN
public static void pushContextEvent(String callback, String id, ContextEvent event) throws PushException
PushException
public static void pushServiceCall(String callback, String id, ServiceCall call, String origin) throws PushException
PushException
public static int determineEndpoint(String remote)
remote
- String representation of the endpointRemoteAPI.REMOTE_GCM if the endpoint is an Android GCM key
RemoteAPI.REMOTE_UNKNOWN if anything else
Copyright © 2018 universAAL Consortium. All rights reserved.