Back to project page wonderpush-android-sdk.
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.
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><application> * <meta-data android:name="wonderpushInitializerClass" android:value="com.package.YourWonderPushInitializerImpl"/> *</application></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); }