Property | Type | Description | |
---|---|---|---|
$collapseKey | string | ||
$contentAvailable | boolean | ||
$delayWhileIdle | boolean | ||
$dryRun | boolean | ||
$priority | string | ||
$restrictedPackageName | string | ||
$timeToLive | string |
Method | Description | |
---|---|---|
build ( ) : |
build an instance of Options | |
getCollapseKey ( ) : null | string | Get the collapseKey | |
getPriority ( ) : null | string | Get the priority | |
getRestrictedPackageName ( ) : null | string | get restricted package name | |
getTimeToLive ( ) : null | integer | get time to live | |
isContentAvailable ( ) : boolean | is content available | |
isDelayWhileIdle ( ) : boolean | is delay white idle | |
isDryRun ( ) : boolean | is dry run | |
setCollapseKey ( String $collapseKey ) : |
This parameter identifies a group of messages A maximum of 4 different collapse keys is allowed at any given time. | |
setContentAvailable ( boolean $contentAvailable ) : |
support only Android and Ios | |
setDelayWhileIdle ( boolean $delayWhileIdle ) : |
When this parameter is set to true, it indicates that the message should not be sent until the device becomes active. | |
setDryRun ( boolean $isDryRun ) : |
This parameter, when set to true, allows developers to test a request without actually sending a message. | |
setPriority ( String $priority ) : |
Sets the priority of the message. Valid values are "normal" and "high." By default, messages are sent with normal priority | |
setRestrictedPackageName ( string $restrictedPackageName ) : |
This parameter specifies the package name of the application where the registration tokens must match in order to receive the message. | |
setTimeToLive ( integer $timeToLive ) : |
This parameter specifies how long the message should be kept in FCM storage if the device is offline |
public getCollapseKey ( ) : null | string | ||
return | null | string |
public getPriority ( ) : null | string | ||
return | null | string |
public getRestrictedPackageName ( ) : null | string | ||
return | null | string |
public getTimeToLive ( ) : null | integer | ||
return | null | integer |
public isContentAvailable ( ) : boolean | ||
return | boolean |
public isDelayWhileIdle ( ) : boolean | ||
return | boolean |
public setCollapseKey ( String $collapseKey ) : |
||
$collapseKey | String | |
return |
public setContentAvailable ( boolean $contentAvailable ) : |
||
$contentAvailable | boolean | |
return |
public setDelayWhileIdle ( boolean $delayWhileIdle ) : |
||
$delayWhileIdle | boolean | |
return |
public setPriority ( String $priority ) : |
||
$priority | String | |
return |
public setRestrictedPackageName ( string $restrictedPackageName ) : |
||
$restrictedPackageName | string | |
return |
public setTimeToLive ( integer $timeToLive ) : |
||
$timeToLive | integer | (in second) min:0 max:2419200 |
return |