DBACCOUNTSetProfilePhotoArg

Objective-C

@interface DBACCOUNTSetProfilePhotoArg : NSObject <DBSerializable, NSCopying>

Swift

class DBACCOUNTSetProfilePhotoArg : NSObject, DBSerializable, NSCopying

The SetProfilePhotoArg struct.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPhoto:(nonnull DBACCOUNTPhotoSourceArg *)photo;

    Swift

    init(photo: DBACCOUNTPhotoSourceArg)

    Parameters

    photo

    Image to set as the user’s new profile photo.

    Return Value

    An initialized instance.