DBTEAMMobileClientSession

@interface DBTEAMMobileClientSession
    : DBTEAMDeviceSession <DBSerializable, NSCopying>

The MobileClientSession struct.

Information about linked Dropbox mobile client sessions.

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

  • The device name.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull deviceName;

    Swift

    var deviceName: String { get }
  • The mobile application type.

    Declaration

    Objective-C

    @property (readonly, nonatomic) DBTEAMMobileClientPlatform *_Nonnull clientType;

    Swift

    var clientType: DBTEAMMobileClientPlatform { get }
  • The dropbox client version.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *clientVersion;

    Swift

    var clientVersion: String? { get }
  • The hosting OS version.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *osVersion;

    Swift

    var osVersion: String? { get }
  • last carrier used by the device.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *lastCarrier;

    Swift

    var lastCarrier: String? { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithSessionId:(nonnull NSString *)sessionId
           deviceName:(nonnull NSString *)deviceName
           clientType:(nonnull DBTEAMMobileClientPlatform *)clientType
            ipAddress:(nullable NSString *)ipAddress
              country:(nullable NSString *)country
              created:(nullable NSDate *)created
              updated:(nullable NSDate *)updated
        clientVersion:(nullable NSString *)clientVersion
            osVersion:(nullable NSString *)osVersion
          lastCarrier:(nullable NSString *)lastCarrier;

    Swift

    init(sessionId: String, deviceName: String, clientType: DBTEAMMobileClientPlatform, ipAddress: String?, country: String?, created: Date?, updated: Date?, clientVersion: String?, osVersion: String?, lastCarrier: String?)

    Parameters

    sessionId

    The session id.

    deviceName

    The device name.

    clientType

    The mobile application type.

    ipAddress

    The IP address of the last activity from this session.

    country

    The country from which the last activity from this session was made.

    created

    The time this session was created.

    updated

    The time of the last activity from this session.

    clientVersion

    The dropbox client version.

    osVersion

    The hosting OS version.

    lastCarrier

    last carrier used by the device.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSessionId:(nonnull NSString *)sessionId
                                   deviceName:(nonnull NSString *)deviceName
                                   clientType:(nonnull DBTEAMMobileClientPlatform *)
                                                  clientType;

    Swift

    init(sessionId: String, deviceName: String, clientType: DBTEAMMobileClientPlatform)

    Parameters

    sessionId

    The session id.

    deviceName

    The device name.

    clientType

    The mobile application type.

    Return Value

    An initialized instance.