RLMUserIdentity

@interface RLMUserIdentity : NSObject

An identity of a user. A user can have multiple identities, usually associated with multiple providers. Note this is different from a user’s unique identifier string. @seeAlso RLMUser.identifier

  • The associated provider type

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull providerType;

    Swift

    var providerType: String { get }
  • The string which identifies the RLMUserIdentity

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull identifier;

    Swift

    var identifier: String { get }
  • Initialize an RLMUserIdentity for the given identifier and provider type.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initUserIdentityWithProviderType:(nonnull NSString *)providerType
                              identifier:(nonnull NSString *)identifier;

    Swift

    init(userIdentityWithProviderType providerType: String, identifier: String)

    Parameters

    providerType

    the associated provider type

    identifier

    the identifier of the identity