Property | Type | Description | |
---|---|---|---|
$badge | null | String | ||
$body | null | String | ||
$bodyLocationArgs | null | String | ||
$bodyLocationKey | null | String | ||
$clickAction | null | String | ||
$color | null | String | ||
$icon | null | String | ||
$sound | null | String | ||
$tag | null | String | ||
$title | null | String | ||
$titleLocationArgs | null | String | ||
$titleLocationKey | null | String |
Method | Description | |
---|---|---|
__construct ( String $title = null ) | Title must be present on android notification and ios (watch) notification | |
build ( ) : |
Build an PayloadNotification | |
getBadge ( ) : null | String | Get Badge | |
getBody ( ) : null | String | Get body | |
getBodyLocationArgs ( ) : null | String | array | Get BodyLocationArgs | |
getBodyLocationKey ( ) : null | String | Get BodyLocationKey | |
getClickAction ( ) : null | String | Get ClickAction | |
getColor ( ) : null | String | Get Color | |
getIcon ( ) : null | String | Get Icon | |
getSound ( ) : null | String | Get Sound | |
getTag ( ) : null | String | Get Tag | |
getTitle ( ) : null | String | Get title | |
getTitleLocationArgs ( ) : null | String | array | GetTitleLocationArgs | |
getTitleLocationKey ( ) : string | Get TitleLocationKey | |
setBadge ( String $badge ) : |
Supported Ios | |
setBody ( String $body ) : |
Indicates notification body text. | |
setBodyLocationArgs ( mixed $bodyArgs ) : |
Indicates the string value to replace format specifiers in the body string for localization. | |
setBodyLocationKey ( String $bodyKey ) : |
Indicates the key to the body string for localization. | |
setClickAction ( String $action ) : |
Indicates the action associated with a user click on the notification | |
setColor ( String $color ) : |
Supported Android | |
setIcon ( String $icon ) : |
Supported Android Indicates notification icon. example : Sets value to myicon for drawable resource myicon. | |
setSound ( String $sound ) : |
Indicates a sound to play when the device receives a notification. | |
setTag ( String $tag ) : |
Supported Android | |
setTitle ( String $title ) : |
Indicates notification title. This field is not visible on iOS phones and tablets. | |
setTitleLocationArgs ( mixed $titleArgs ) : |
Indicates the string value to replace format specifiers in the title string for localization. | |
setTitleLocationKey ( String $titleKey ) : |
Indicates the key to the title string for localization. |
public __construct ( String $title = null ) | ||
$title | String |
public build ( ) : |
||
return |
public getBodyLocationArgs ( ) : null | String | array | ||
return | null | String | array |
public getBodyLocationKey ( ) : null | String | ||
return | null | String |
public getClickAction ( ) : null | String | ||
return | null | String |
public getTitleLocationArgs ( ) : null | String | array | ||
return | null | String | array |
public getTitleLocationKey ( ) : string | ||
return | string |
public setBadge ( String $badge ) : |
||
$badge | String | |
return | current instance of the builder |
public setBody ( String $body ) : |
||
$body | String | |
return | current instance of the builder |
public setBodyLocationArgs ( mixed $bodyArgs ) : |
||
$bodyArgs | mixed | |
return | current instance of the builder |
public setBodyLocationKey ( String $bodyKey ) : |
||
$bodyKey | String | |
return | current instance of the builder |
public setClickAction ( String $action ) : |
||
$action | String | |
return | current instance of the builder |
public setColor ( String $color ) : |
||
$color | String | |
return | current instance of the builder |
public setIcon ( String $icon ) : |
||
$icon | String | |
return | current instance of the builder |
public setSound ( String $sound ) : |
||
$sound | String | |
return | current instance of the builder |
public setTag ( String $tag ) : |
||
$tag | String | |
return | current instance of the builder |
public setTitle ( String $title ) : |
||
$title | String | |
return | current instance of the builder |
public setTitleLocationArgs ( mixed $titleArgs ) : |
||
$titleArgs | mixed | |
return | current instance of the builder |
public setTitleLocationKey ( String $titleKey ) : |
||
$titleKey | String | |
return | current instance of the builder |