LINE Messaging API SDK for PHP

RichMenuSwitchTemplateActionBuilder implements TemplateActionBuilder

A builder class for rich menu switch action.

Interfaces, Classes and Traits

TemplateActionBuilder
The interface that has a responsibility to build template action.

Table of Contents

$data  : string
$label  : string|null
$richMenuAliasId  : string
__construct()  : mixed
RichMenuSwitchAction constructor.
buildTemplateAction()  : array<string|int, mixed>
Builds rich menu switch action structure.

Properties

Methods

__construct()

RichMenuSwitchAction constructor.

public __construct(string $richMenuAliasId, string $data[, string $label = null ]) : mixed
Parameters
$richMenuAliasId : string

The rich menu to be switched to.

$data : string

Returned text when postback event is triggered.

$label : string = null

Label of action.

Return values
mixed

buildTemplateAction()

Builds rich menu switch action structure.

public buildTemplateAction() : array<string|int, mixed>
Return values
array<string|int, mixed>

Built rich menu switch action structure.

Search results