AccountRoutes
public class AccountRoutes : DropboxTransportClientOwning
Routes for the account namespace For Objective-C compatible routes see DBAccountRoutes
-
Sets a user’s profile photo.
scope: account_info.write
Declaration
Swift
@discardableResult public 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.