We have added the option to let you use these methods within your app's setting screen, so the user can switch on/off the inbox (if applicable to you application) and the option of receiving Push Notifications.
Each Method is called through "Appoxee.methodName()".
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
new AsyncTask<Void, Void, Void>() {
@Override
protected Void doInBackground(Void... params) {
// TODO Auto-generated method stub
Appoxee.OptOut("pushToken", true);
return null;
}
}.execute(); |
//Opt in/Out (Push,Badge,Sound,Inbox). Return TRUE on success
//Value field can be : "pushToken", "badgeinbox", "sound" or vibrate"inbox"
public static boolean OptOut(String value,boolean toggleValue)//Get Sound Enabled Flag (Opted In/Out)
public static boolean getSoundEnableValue()
//Get Push Enabled Flag (Opted In/Out)
public static boolean getPushEnableValue()
//Get Badge Enabled Flag (Opted In/Out)
...
//Is Inbox Feature enabled
public static boolean getInboxEnableValue()
//Is Feedback Feature enabled
public static boolean getFeedbackEnableValue()
...