DBTEAMMobileClientSession
Objective-C
@interface DBTEAMMobileClientSession
    : DBTEAMDeviceSession <DBSerializable, NSCopying>
                Swift
class 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 (nonatomic, copy, readonly) NSString *_Nonnull deviceName;Swift
var deviceName: String { get } - 
                  
                  
The mobile application type.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMMobileClientPlatform *_Nonnull clientType;Swift
var clientType: DBTEAMMobileClientPlatform { get } - 
                  
                  
The dropbox client version.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *clientVersion;Swift
var clientVersion: String? { get } - 
                  
                  
The hosting OS version.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *osVersion;Swift
var osVersion: String? { get } - 
                  
                  
last carrier used by the device.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *lastCarrier;Swift
var lastCarrier: String? { get } 
- 
                  
-initWithSessionId:deviceName: clientType: ipAddress: country: created: updated: clientVersion: osVersion: lastCarrier: 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
sessionIdThe session id.
deviceNameThe device name.
clientTypeThe mobile application type.
ipAddressThe IP address of the last activity from this session.
countryThe country from which the last activity from this session was made.
createdThe time this session was created.
updatedThe time of the last activity from this session.
clientVersionThe dropbox client version.
osVersionThe hosting OS version.
lastCarrierlast 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
sessionIdThe session id.
deviceNameThe device name.
clientTypeThe mobile application type.
Return Value
An initialized instance.
 
View on GitHub
        DBTEAMMobileClientSession Class Reference