public class AeroGearGCMPushRegistrar extends Object implements PushRegistrar, MetricsSender<UnifiedPushMetricsMessage>
| Constructor and Description |
|---|
AeroGearGCMPushRegistrar(UnifiedPushConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
register(android.content.Context context,
org.jboss.aerogear.android.core.Callback<Void> callback)
Registers a device to a push network and any 3rd party application servers.
|
void |
sendMetrics(UnifiedPushMetricsMessage metricsMessage,
org.jboss.aerogear.android.core.Callback<UnifiedPushMetricsMessage> callback)
Send a confirmation the message was opened
|
void |
setPasswordAuthentication(String username,
String password,
org.jboss.aerogear.android.pipe.http.HttpProvider provider) |
void |
unregister(android.content.Context context,
org.jboss.aerogear.android.core.Callback<Void> callback)
Unregister device from Unified Push Server.
|
public AeroGearGCMPushRegistrar(UnifiedPushConfig config)
public void register(android.content.Context context,
org.jboss.aerogear.android.core.Callback<Void> callback)
PushRegistrarregister in interface PushRegistrarcontext - Android application contextcallback - a callback.public void unregister(android.content.Context context,
org.jboss.aerogear.android.core.Callback<Void> callback)
unregister in interface PushRegistrarcontext - Android application contextcallback - a callback.public void sendMetrics(UnifiedPushMetricsMessage metricsMessage, org.jboss.aerogear.android.core.Callback<UnifiedPushMetricsMessage> callback)
sendMetrics in interface MetricsSender<UnifiedPushMetricsMessage>metricsMessage - The id of the message receivedcallback - a callback.Copyright © 2016 JBoss by Red Hat. All rights reserved.