FMPPush.Builder

Description

The FMPPush.Builder class is a builder for the FMPPush class.

class Builder

Methods

Method Description

service(_:)

Save push notifications service to variable.
func service(_ service: FMPPush.Service) -> Builder

Parameters:

  • service. Push notifications service.

token(_:)

Save device token to variable.
func token(_ token: String) -> Builder

Parameters:

  • token. Device token.

build() Build an instance of the FMPPush class. It returns the object of the FMPPush type.
func build() -> FMPPush

Example

Build a instance of the FMPPush class:

// Build an instance of the FMPPush class
let push: FMPPush = fmp.push
    .token("1234") // By default ""
    .service(.firebase) // .apns by default
    .build()

See also:

FMPWrapper Framework | Classes