PHP 클래스 paragraph1\phpFCM\Message

저자: palbertini
상속: implements JsonSerializable
파일 보기 프로젝트 열기: paragraph1/php-fcm 1 사용 예제들

공개 메소드들

메소드 설명
addRecipient ( paragraph1\phpFCM\Recipient\Recipient $recipient ) : Message where should the message go
jsonSerialize ( )
setCollapseKey ( string $collapseKey ) : Message
setContentAvailable ( ) : Message
setData ( array $data )
setDelayWhileIdle ( boolean $delayWhileIdle ) : Message
setNotification ( Notification $notification )
setPriority ( string $priority ) : Message normal or high, use class constants as value
setTimeToLive ( integer $ttl ) : Message

비공개 메소드들

메소드 설명
createTo ( array &$jsonData )

메소드 상세

addRecipient() 공개 메소드

where should the message go
public addRecipient ( paragraph1\phpFCM\Recipient\Recipient $recipient ) : Message
$recipient paragraph1\phpFCM\Recipient\Recipient
리턴 Message

jsonSerialize() 공개 메소드

public jsonSerialize ( )

setCollapseKey() 공개 메소드

또한 보기: https://firebase.google.com/docs/cloud-messaging/concept-options#collapsible_and_non-collapsible_messages
public setCollapseKey ( string $collapseKey ) : Message
$collapseKey string
리턴 Message

setContentAvailable() 공개 메소드

또한 보기: https://firebase.google.com/docs/cloud-messaging/concept-options#collapsible_and_non-collapsible_messages
public setContentAvailable ( ) : Message
리턴 Message

setData() 공개 메소드

public setData ( array $data )
$data array

setDelayWhileIdle() 공개 메소드

또한 보기: https://firebase.google.com/docs/cloud-messaging/concept-options#lifetime
public setDelayWhileIdle ( boolean $delayWhileIdle ) : Message
$delayWhileIdle boolean
리턴 Message

setNotification() 공개 메소드

public setNotification ( Notification $notification )
$notification Notification

setPriority() 공개 메소드

normal or high, use class constants as value
또한 보기: https://firebase.google.com/docs/cloud-messaging/concept-options#setting-the-priority-of-a-message
public setPriority ( string $priority ) : Message
$priority string use the class constants
리턴 Message

setTimeToLive() 공개 메소드

또한 보기: https://firebase.google.com/docs/cloud-messaging/concept-options#ttl
public setTimeToLive ( integer $ttl ) : Message
$ttl integer
리턴 Message