AccountRoutes
open class AccountRoutes
Routes for the account namespace
-
Sets a user’s profile photo.
Declaration
Swift
@discardableResult open func setProfilePhoto(photo: Account.PhotoSourceArg) -> RpcRequest<Account.SetProfilePhotoResultSerializer, Account.SetProfilePhotoErrorSerializer>
Parameters
photo
Image to set as the user’s new profile photo.
Return Value
Through the response callback, the caller will receive a
Account.SetProfilePhotoResult
object on success or aAccount.SetProfilePhotoError
object on failure.