ws1-client-sdk/com.airwatch.sdk/SDKManager/getServerName
getServerName¶
open fun getServerName(): String
Retrieves the server name in which the device is currently enrolled.
Access Level = AW_MANAGED (for details on access permission please check SDKManager)
Return¶
The server name, usually a DNS name but can be an IP address; a non-empty string when enrolled
Throws¶
| Exception | Condition |
|---|---|
| com.airwatch.sdk.AirWatchSDKException | if API is not available in Anchor Application or if binding with Anchor app fails or if empty host name is returned |