fromString

open fun fromString(type: String): PushType

Return the push type for a given string.

Return

the push type. Returns DEFAULT if the type parameter is {null} or invalid.

Parameters

type

a String representing the PushType.