public class NCMBPush extends NCMBBase
mClassName, mFields, mIgnoreKeys, mUpdateKeys
Constructor and Description |
---|
NCMBPush()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete push object
|
void |
deleteInBackground()
Delete push object inBackground
none callback
|
void |
deleteInBackground(DoneCallback callback)
Delete push object inBackground
|
static void |
dialogPushHandler(android.content.Context context,
android.os.Bundle bundle,
NCMBDialogPushConfiguration dialogPushConfiguration)
If it contains the dialog in the payload data, it will display the dialog
|
void |
fetch()
Get push object
|
void |
fetchInBackground()
Get push object inBackground
none callback
|
void |
fetchInBackground(FetchCallback callback)
Get push object inBackground
|
java.lang.String |
getAction()
Get action
|
java.lang.Boolean |
getBadgeIncrementFlag()
Get badge increment flag
|
int |
getBadgeSetting()
Get badge setting count
|
java.lang.String |
getCategory()
Get category
|
java.lang.Boolean |
getContentAvailable()
Get content available flag
|
java.util.Date |
getDeliveryExpirationDate()
Get delivery expiration date
|
java.lang.String |
getDeliveryExpirationTime()
Get delivery expiration time
|
int |
getDeliveryNumber()
Get delivery number
|
int |
getDeliveryPlanNumber()
Get delivery plan number
|
java.util.Date |
getDeliveryTime()
Get delivery date
|
java.lang.Boolean |
getDialog()
Get dialog flag
|
org.json.JSONObject |
getError()
Get delivery error
|
java.lang.String |
getMessage()
Get push message
|
static NCMBQuery<NCMBPush> |
getQuery()
Create query for push class
|
java.lang.String |
getRichUrl()
Get richUrl
|
org.json.JSONObject |
getSearchCondition()
Get search condition
|
java.lang.String |
getSound()
Get sound
|
int |
getStatus()
Get delivery status
|
org.json.JSONArray |
getTarget()
Get target device
|
java.lang.String |
getTitle()
Get push title
|
org.json.JSONObject |
getUserSettingValue()
Get user setting value
|
static void |
richPushHandler(android.content.Context context,
android.content.Intent intent)
If it contains the URL in the payload data, it will display the webview
|
void |
send()
Send push object
|
void |
sendInBackground()
Send push object inBackground
none callback
|
void |
sendInBackground(DoneCallback callback)
Send push object inBackground
|
void |
setAction(java.lang.String value)
Set action
|
void |
setBadgeIncrementFlag(java.lang.Boolean value)
Set badge increment flag
|
void |
setBadgeSetting(java.lang.Integer value)
Set badge setting count
|
void |
setCategory(java.lang.String value)
Set category
|
void |
setContentAvailable(java.lang.Boolean value)
Set content available flag
|
void |
setDeliveryExpirationDate(java.util.Date value)
Set delivery expiration date
|
void |
setDeliveryExpirationTime(java.lang.String value)
Set delivery expiration time
|
void |
setDeliveryTime(java.util.Date value)
Set delivery date
|
void |
setDialog(java.lang.Boolean value)
Set dialog flag
|
void |
setMessage(java.lang.String value)
Set push message
|
void |
setRichUrl(java.lang.String value)
Set richUrl
|
void |
setSearchCondition(NCMBQuery<NCMBInstallation> query)
Set search condition
|
void |
setSound(java.lang.String value)
Set sound
|
void |
setTarget(org.json.JSONArray value)
Set target device
|
void |
setTitle(java.lang.String value)
Set push title
|
void |
setUserSettingValue(org.json.JSONObject value)
Set user setting value
|
static void |
trackAppOpened(android.content.Intent intent)
Open push registration in background
|
allKeys, containsKey, createUpdateJsonData, getAcl, getBoolean, getClassName, getCreateDate, getDate, getDouble, getGeolocation, getIncludeObject, getInt, getJSONArray, getJSONObject, getList, getLong, getMap, getObjectId, getString, getUpdateDate, put, put, put, put, put, put, put, put, put, put, put, put, put, remove, setAcl, setAclFromInternal, setCreateDate, setObjectId, setUpdateDate
public java.util.Date getDeliveryTime()
public org.json.JSONArray getTarget()
public org.json.JSONObject getSearchCondition()
public java.lang.String getMessage()
public org.json.JSONObject getUserSettingValue()
public java.util.Date getDeliveryExpirationDate()
public java.lang.String getDeliveryExpirationTime()
public int getDeliveryPlanNumber()
public int getDeliveryNumber()
public int getStatus()
public org.json.JSONObject getError()
public java.lang.String getAction()
public java.lang.Boolean getBadgeIncrementFlag()
public java.lang.String getSound()
public java.lang.Boolean getContentAvailable()
public java.lang.String getTitle()
public java.lang.Boolean getDialog()
public java.lang.String getRichUrl()
public int getBadgeSetting()
public java.lang.String getCategory()
public void setDeliveryTime(java.util.Date value)
value
- deliveryTimepublic void setTarget(org.json.JSONArray value)
value
- deliveryTarget ospublic void setSearchCondition(NCMBQuery<NCMBInstallation> query)
query
- NCMBQuery for installation searchpublic void setMessage(java.lang.String value)
value
- messagepublic void setUserSettingValue(org.json.JSONObject value)
value
- user setting valuepublic void setDeliveryExpirationDate(java.util.Date value)
value
- delivery expiration datepublic void setDeliveryExpirationTime(java.lang.String value)
value
- delivery expiration datepublic void setAction(java.lang.String value)
value
- actionpublic void setBadgeIncrementFlag(java.lang.Boolean value)
value
- badge increment flagpublic void setSound(java.lang.String value)
value
- soundpublic void setContentAvailable(java.lang.Boolean value)
value
- content available flagpublic void setTitle(java.lang.String value)
value
- titlepublic void setDialog(java.lang.Boolean value)
value
- dialog flagpublic void setRichUrl(java.lang.String value)
value
- richUrlpublic void setBadgeSetting(java.lang.Integer value)
value
- badge setting countpublic void setCategory(java.lang.String value)
value
- categorypublic static NCMBQuery<NCMBPush> getQuery()
public void send() throws NCMBException
NCMBException
- exception from NIFCLOUD mobile backendpublic void sendInBackground()
public void sendInBackground(DoneCallback callback)
callback
- DoneCallbackpublic void fetch() throws NCMBException
NCMBException
- exception from NIFCLOUD mobile backendpublic void fetchInBackground()
public void fetchInBackground(FetchCallback callback)
callback
- DoneCallbackpublic void delete() throws NCMBException
NCMBException
- exception from NIFCLOUD mobile backendpublic void deleteInBackground()
public void deleteInBackground(DoneCallback callback)
callback
- DoneCallbackpublic static void richPushHandler(android.content.Context context, android.content.Intent intent)
context
- contextintent
- URLpublic static void trackAppOpened(android.content.Intent intent)
intent
- ActivityIntentpublic static void dialogPushHandler(android.content.Context context, android.os.Bundle bundle, NCMBDialogPushConfiguration dialogPushConfiguration)
context
- contextbundle
- pushDatadialogPushConfiguration
- push settings