Update User Information
You can update username and profile image URL.
// manually set profile image URL
[[TalkPlus sharedInstance] updateUserProfile:username
profileImageUrl:profileImageUrl
metaData:metaData
success:^(TPUser *tpUser) {
// SUCCESS
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
// uploadi profile image file
[[TalkPlus sharedInstance] updateUserProfile:username
profileImage:profileImage
metaData:metaData
success:^(TPUser *tpUser) {
// SUCCESS
} failure:^(int errorCode, NSError *error) {
// FAILURE
}];
// manually set profile image URL
TalkPlus.sharedInstance()?.updateUserProfile(username,
profileImageUrl: profileImageUrl,
metaData: metaData,
success: { tpUser in
// SUCCESS
}, failure: { (errorCode, error) in
// FAILURE
})
// uploadi profile image file
TalkPlus.sharedInstance()?.updateUserProfile(username,
profileImage: profileImage,
metaData: metaData,
success: { tpUser in
// SUCCESS
}, failure: { (errorCode, error) in
// FAILURE
})
Last updated