mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
963 B
Objective-C
32 lines
963 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
extern NSString *const kNSNotificationName_LocalProfileDidChange;
|
|
|
|
// This class can be safely accessed and used from any thread.
|
|
@interface OWSProfilesManager : NSObject
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
+ (instancetype)sharedManager;
|
|
|
|
@property (atomic, nullable, readonly) NSString *localProfileName;
|
|
@property (atomic, nullable, readonly) UIImage *localProfileAvatarImage;
|
|
|
|
// This method is used to update the "local profile" state on the client
|
|
// and the service. Client state is only updated if service state is
|
|
// successfully updated.
|
|
- (void)updateLocalProfileName:(nullable NSString *)localProfileName
|
|
localProfileAvatarImage:(nullable UIImage *)localProfileAvatarImage
|
|
success:(void (^)())successBlock
|
|
failure:(void (^)())failureBlock;
|
|
|
|
- (void)appLaunchDidBegin;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|