UserId

@objcMembers
@objc(GetSocialUserId)
public final class UserId : NSObject

Describe an external user id.

  • Declaration

    Swift

    public init(_ userId: String, providerId: String? = nil)
  • Create a UserId instance with an external user id.

    Declaration

    Swift

    @objc(create:)
    public static func create(_ id: String) -> UserId

    Return Value

    New UserId instance.

  • Create a UserId instance with an external user id and provider id.

    Declaration

    Swift

    @objc(createWithProvider:userId:)
    public static func create(provider: String, id: String) -> UserId

    Return Value

    New UserId instance.

  • Create a UserId instance for the app

    Declaration

    Swift

    @objc(createForApp)
    public static func createForApp() -> UserId

    Return Value

    New UserId instance.

  • Create a UserId instance with current user. New UserId instance.

    Declaration

    Swift

    @objc(currentUser)
    public static func currentUser() -> UserId
  • Description.

    Declaration

    Swift

    public override var description: String { get }