DITAuthenticationStatus
@interface DITAuthenticationStatus : NSObject
Provides info about the authentication status.
-
Returns
YESif authenticated, otherwise returnsNO.Declaration
Objective-C
@property (nonatomic, readonly, getter=isAuthenticated) BOOL authenticated; -
If authenticated, returns the user ID if one was provided by the authentication service. Otherwise returns
nil.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *userID; -
Convenience initializer, same as
[... initAuthenticated:NO userID:nil].Declaration
Objective-C
- (nonnull instancetype)init; -
Initializes an authentication status object with the given parameters.
Declaration
Objective-C
- (nonnull instancetype)initAuthenticated:(BOOL)isAuthenticated userID:(nullable NSString *)userID; -
Returns
YESif passed object is an instance of DITAuthenticationStatus and equal to the receiver. Otherwise returnsNO.Declaration
Objective-C
- (BOOL)isEqual:(nullable id)object; -
Returns
YESif passedauthenticationStatusis equal to the receiver. Otherwise returnsNO. This is a faster variant ofisEqual:, use this if you know for sureauthenticationStatusto be a kind ofDITAuthenticationStatus.Declaration
Objective-C
- (BOOL)isEqualToAuthenticationStatus: (nonnull DITAuthenticationStatus *)authenticationStatus; -
Returns the hash for the receiver.
Declaration
Objective-C
- (NSUInteger)hash; -
Returns a string representation of the receiver.
Declaration
Objective-C
- (nonnull NSString *)description;
DITAuthenticationStatus Class Reference