customEvent

Creates a new CustomEvent.

Return

A new CustomEvent instance.

Parameters

name

The event name.

block

A lambda function that configures the Builder.


fun customEvent(type: MediaEventTemplate.Type, properties: MediaEventTemplate.Properties = MediaEventTemplate.Properties(), block: CustomEvent.Builder.() -> Unit): CustomEvent(source)

Creates a new CustomEvent from a MediaEventTemplate.

Return

A new CustomEvent instance.

Parameters

type

The media event type.

properties

The media event properties.

block

A lambda function that configures the Builder.


fun customEvent(type: AccountEventTemplate.Type, properties: AccountEventTemplate.Properties = AccountEventTemplate.Properties(), block: CustomEvent.Builder.() -> Unit): CustomEvent(source)

Creates a new CustomEvent from a AccountEventTemplate.

Return

A new CustomEvent instance.

Parameters

type

The account event type.

properties

The account event properties.

block

A lambda function that configures the Builder.


fun customEvent(type: RetailEventTemplate.Type, properties: RetailEventTemplate.Properties = RetailEventTemplate.Properties(), block: CustomEvent.Builder.() -> Unit): CustomEvent(source)

Creates a new CustomEvent from a RetailEventTemplate.

Return

A new CustomEvent instance.

Parameters

type

The retail event type.

properties

The retail event properties.

block

A lambda function that configures the Builder.


fun customEvent(type: SearchEventTemplate.Type, properties: SearchEventTemplate.Properties = SearchEventTemplate.Properties(), block: CustomEvent.Builder.() -> Unit): CustomEvent(source)

Creates a new CustomEvent from a SearchEventTemplate.

Return

A new CustomEvent instance.

Parameters

type

The search event type.

properties

The search event properties.

block

A lambda function that configures the Builder.