Android Open Source - wonderpush-android-sdk Wonder Push Initializer






From Project

Back to project page wonderpush-android-sdk.

License

The source code is released under:

Apache License

If you think the Android project wonderpush-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.wonderpush.sdk;
//from  w  w  w  .  j a v  a 2  s  .c o  m
import android.content.Context;

/**
 * Interface for the self-initialization of the SDK.
 *
 * <p>You must implement this interface and register your implementation in the {@code AndroidManifest.xml} as follows:</p>
 * <pre><code>&lt;application&gt;
 *    &lt;meta-data android:name="wonderpushInitializerClass" android:value="com.package.YourWonderPushInitializerImpl"/&gt;
 *&lt;/application&gt;</code></pre>
 */
public interface WonderPushInitializer {

    /**
     * Initialize the {@link WonderPush} SDK with your client id and client secret.
     *
     * <p>This method should retrieve the client id and client secret that you took care to hide securely in your application.</p>
     *
     * <p>
     *   It <i>must</i> then call {@link WonderPush#initialize(Context, String, String)} with the {@link Context} given in argument,
     *   and the retrieved credentials.
     * </p>
     *
     * <pre><code>@Override
     *public void initialize(Context context) {
     *    String clientId;     // retrieve these credentials
     *    String clientSecret; // from a protected storage
     *    WonderPush.initialize(context, clientId, clientSecret)
     *}</code></pre>
     *
     * @param context
     *            The {@link Context} you must pass on to {@link WonderPush#initialize(Context, String, String)}.
     */
    public void initialize(Context context);

}




Java Source Code List

com.wonderpush.sdk.QueryStringParser.java
com.wonderpush.sdk.WonderPushBroadcastReceiver.java
com.wonderpush.sdk.WonderPushCompatibilityHelper.java
com.wonderpush.sdk.WonderPushConfiguration.java
com.wonderpush.sdk.WonderPushDialogBuilder.java
com.wonderpush.sdk.WonderPushGcmClient.java
com.wonderpush.sdk.WonderPushInitializer.java
com.wonderpush.sdk.WonderPushJobQueue.java
com.wonderpush.sdk.WonderPushOnUpgradeReceiver.java
com.wonderpush.sdk.WonderPushRequestParamsDecorator.java
com.wonderpush.sdk.WonderPushRequestVault.java
com.wonderpush.sdk.WonderPushRestClient.java
com.wonderpush.sdk.WonderPushService.java
com.wonderpush.sdk.WonderPushUriHelper.java
com.wonderpush.sdk.WonderPushView.java
com.wonderpush.sdk.WonderPush.java
com.wonderpush.sdk.package-info.java