The FMPPush.Builder class is a builder for the FMPPush class.
class Builder
Method | Description |
service(_:) |
Save push notifications service to variable.func service(_ service: FMPPush.Service) -> Builder Parameters:
|
token(_:) |
Save device token to variable. func token(_ token: String) -> Builder Parameters:
|
build() | Build an instance of the FMPPush class. It returns the object of the FMPPush type. func build() -> FMPPush |
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: