PHP 클래스 LaravelFCM\Message\PayloadNotificationBuilder

Official google documentation :
파일 보기 프로젝트 열기: brozot/laravel-fcm 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__construct ( String $title = null ) Title must be present on android notification and ios (watch) notification
build ( ) : PayloadNotification 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 ) : PayloadNotificationBuilder Supported Ios
setBody ( String $body ) : PayloadNotificationBuilder Indicates notification body text.
setBodyLocationArgs ( mixed $bodyArgs ) : PayloadNotificationBuilder Indicates the string value to replace format specifiers in the body string for localization.
setBodyLocationKey ( String $bodyKey ) : PayloadNotificationBuilder Indicates the key to the body string for localization.
setClickAction ( String $action ) : PayloadNotificationBuilder Indicates the action associated with a user click on the notification
setColor ( String $color ) : PayloadNotificationBuilder Supported Android
setIcon ( String $icon ) : PayloadNotificationBuilder Supported Android Indicates notification icon. example : Sets value to myicon for drawable resource myicon.
setSound ( String $sound ) : PayloadNotificationBuilder Indicates a sound to play when the device receives a notification.
setTag ( String $tag ) : PayloadNotificationBuilder Supported Android
setTitle ( String $title ) : PayloadNotificationBuilder Indicates notification title. This field is not visible on iOS phones and tablets.
setTitleLocationArgs ( mixed $titleArgs ) : PayloadNotificationBuilder Indicates the string value to replace format specifiers in the title string for localization.
setTitleLocationKey ( String $titleKey ) : PayloadNotificationBuilder Indicates the key to the title string for localization.

메소드 상세

__construct() 공개 메소드

Title must be present on android notification and ios (watch) notification
public __construct ( String $title = null )
$title String

build() 공개 메소드

Build an PayloadNotification
public build ( ) : PayloadNotification
리턴 PayloadNotification

getBadge() 공개 메소드

Get Badge
public getBadge ( ) : null | String
리턴 null | String

getBody() 공개 메소드

Get body
public getBody ( ) : null | String
리턴 null | String

getBodyLocationArgs() 공개 메소드

Get BodyLocationArgs
public getBodyLocationArgs ( ) : null | String | array
리턴 null | String | array

getBodyLocationKey() 공개 메소드

Get BodyLocationKey
public getBodyLocationKey ( ) : null | String
리턴 null | String

getClickAction() 공개 메소드

Get ClickAction
public getClickAction ( ) : null | String
리턴 null | String

getColor() 공개 메소드

Get Color
public getColor ( ) : null | String
리턴 null | String

getIcon() 공개 메소드

Get Icon
public getIcon ( ) : null | String
리턴 null | String

getSound() 공개 메소드

Get Sound
public getSound ( ) : null | String
리턴 null | String

getTag() 공개 메소드

Get Tag
public getTag ( ) : null | String
리턴 null | String

getTitle() 공개 메소드

Get title
public getTitle ( ) : null | String
리턴 null | String

getTitleLocationArgs() 공개 메소드

GetTitleLocationArgs
public getTitleLocationArgs ( ) : null | String | array
리턴 null | String | array

getTitleLocationKey() 공개 메소드

Get TitleLocationKey
public getTitleLocationKey ( ) : string
리턴 string

setBadge() 공개 메소드

Indicates the badge on the client app home icon.
public setBadge ( String $badge ) : PayloadNotificationBuilder
$badge String
리턴 PayloadNotificationBuilder current instance of the builder

setBody() 공개 메소드

Indicates notification body text.
public setBody ( String $body ) : PayloadNotificationBuilder
$body String
리턴 PayloadNotificationBuilder current instance of the builder

setBodyLocationArgs() 공개 메소드

Indicates the string value to replace format specifiers in the body string for localization.
public setBodyLocationArgs ( mixed $bodyArgs ) : PayloadNotificationBuilder
$bodyArgs mixed
리턴 PayloadNotificationBuilder current instance of the builder

setBodyLocationKey() 공개 메소드

Indicates the key to the body string for localization.
public setBodyLocationKey ( String $bodyKey ) : PayloadNotificationBuilder
$bodyKey String
리턴 PayloadNotificationBuilder current instance of the builder

setClickAction() 공개 메소드

Indicates the action associated with a user click on the notification
public setClickAction ( String $action ) : PayloadNotificationBuilder
$action String
리턴 PayloadNotificationBuilder current instance of the builder

setColor() 공개 메소드

Indicates color of the icon, expressed in #rrggbb format
public setColor ( String $color ) : PayloadNotificationBuilder
$color String
리턴 PayloadNotificationBuilder current instance of the builder

setIcon() 공개 메소드

Supported Android Indicates notification icon. example : Sets value to myicon for drawable resource myicon.
public setIcon ( String $icon ) : PayloadNotificationBuilder
$icon String
리턴 PayloadNotificationBuilder current instance of the builder

setSound() 공개 메소드

Supports default or the filename of a sound resource bundled in the app.
public setSound ( String $sound ) : PayloadNotificationBuilder
$sound String
리턴 PayloadNotificationBuilder current instance of the builder

setTag() 공개 메소드

Indicates whether each notification results in a new entry in the notification drawer on Android. If not set, each request creates a new notification. If set, and a notification with the same tag is already being shown, the new notification replaces the existing one in the notification drawer.
public setTag ( String $tag ) : PayloadNotificationBuilder
$tag String
리턴 PayloadNotificationBuilder current instance of the builder

setTitle() 공개 메소드

but it is required for android
public setTitle ( String $title ) : PayloadNotificationBuilder
$title String
리턴 PayloadNotificationBuilder current instance of the builder

setTitleLocationArgs() 공개 메소드

Indicates the string value to replace format specifiers in the title string for localization.
public setTitleLocationArgs ( mixed $titleArgs ) : PayloadNotificationBuilder
$titleArgs mixed
리턴 PayloadNotificationBuilder current instance of the builder

setTitleLocationKey() 공개 메소드

Indicates the key to the title string for localization.
public setTitleLocationKey ( String $titleKey ) : PayloadNotificationBuilder
$titleKey String
리턴 PayloadNotificationBuilder current instance of the builder

프로퍼티 상세

$badge 보호되어 있는 프로퍼티

protected null|String $badge
리턴 null | String

$body 보호되어 있는 프로퍼티

protected null|String $body
리턴 null | String

$bodyLocationArgs 보호되어 있는 프로퍼티

protected null|String $bodyLocationArgs
리턴 null | String

$bodyLocationKey 보호되어 있는 프로퍼티

protected null|String $bodyLocationKey
리턴 null | String

$clickAction 보호되어 있는 프로퍼티

protected null|String $clickAction
리턴 null | String

$color 보호되어 있는 프로퍼티

protected null|String $color
리턴 null | String

$icon 보호되어 있는 프로퍼티

protected null|String $icon
리턴 null | String

$sound 보호되어 있는 프로퍼티

protected null|String $sound
리턴 null | String

$tag 보호되어 있는 프로퍼티

protected null|String $tag
리턴 null | String

$title 보호되어 있는 프로퍼티

protected null|String $title
리턴 null | String

$titleLocationArgs 보호되어 있는 프로퍼티

protected null|String $titleLocationArgs
리턴 null | String

$titleLocationKey 보호되어 있는 프로퍼티

protected null|String $titleLocationKey
리턴 null | String