DBTEAMRevokeDeviceSessionArg
Objective-C
@interface DBTEAMRevokeDeviceSessionArg : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMRevokeDeviceSessionArg : NSObject, DBSerializable, NSCopying
The RevokeDeviceSessionArg union.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMRevokeDeviceSessionArgTag tag;Swift
var tag: DBTEAMRevokeDeviceSessionArgTag { get } -
End an active session. - note: Ensure the
isWebSessionmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMDeviceSessionArg *_Nonnull webSession;Swift
var webSession: DBTEAMDeviceSessionArg { get } -
Unlink a linked desktop device. - note: Ensure the
isDesktopClientmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMRevokeDesktopClientArg *_Nonnull desktopClient;Swift
var desktopClient: DBTEAMRevokeDesktopClientArg { get } -
Unlink a linked mobile device. - note: Ensure the
isMobileClientmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMDeviceSessionArg *_Nonnull mobileClient;Swift
var mobileClient: DBTEAMDeviceSessionArg { get }
-
Initializes union class with tag state of “web_session”.
Description of the “web_session” tag state: End an active session.
Declaration
Objective-C
- (nonnull instancetype)initWithWebSession: (nonnull DBTEAMDeviceSessionArg *)webSession;Swift
init(webSession: DBTEAMDeviceSessionArg)Parameters
webSessionEnd an active session.
Return Value
An initialized instance.
-
Initializes union class with tag state of “desktop_client”.
Description of the “desktop_client” tag state: Unlink a linked desktop device.
Declaration
Objective-C
- (nonnull instancetype)initWithDesktopClient: (nonnull DBTEAMRevokeDesktopClientArg *)desktopClient;Swift
init(desktopClient: DBTEAMRevokeDesktopClientArg)Parameters
desktopClientUnlink a linked desktop device.
Return Value
An initialized instance.
-
Initializes union class with tag state of “mobile_client”.
Description of the “mobile_client” tag state: Unlink a linked mobile device.
Declaration
Objective-C
- (nonnull instancetype)initWithMobileClient: (nonnull DBTEAMDeviceSessionArg *)mobileClient;Swift
init(mobileClient: DBTEAMDeviceSessionArg)Parameters
mobileClientUnlink a linked mobile device.
Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “web_session”.
Note
Call this method and ensure it returns true before accessing the
webSessionproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isWebSession;Swift
func isWebSession() -> BoolReturn Value
Whether the union’s current tag state has value “web_session”.
-
Retrieves whether the union’s current tag state has value “desktop_client”.
Note
Call this method and ensure it returns true before accessing the
desktopClientproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isDesktopClient;Swift
func isDesktopClient() -> BoolReturn Value
Whether the union’s current tag state has value “desktop_client”.
-
Retrieves whether the union’s current tag state has value “mobile_client”.
Note
Call this method and ensure it returns true before accessing the
mobileClientproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isMobileClient;Swift
func isMobileClient() -> BoolReturn Value
Whether the union’s current tag state has value “mobile_client”.
-
Retrieves string value of union’s current tag state.
Declaration
Objective-C
- (nonnull NSString *)tagName;Swift
func tagName() -> StringReturn Value
A human-readable string representing the union’s current tag state.
View on GitHub
DBTEAMRevokeDeviceSessionArg Class Reference