setDeviceDisplayName method

Future<void> setDeviceDisplayName (
  1. {@required String deviceDisplayName}
)

Sets the display name of the device. The deviceDisplayName is stored in the MobileFirst Server registration data.

Implementation

Future<void> setDeviceDisplayName(
    {@required String deviceDisplayName}) async {
  final dynamic response = await _channel.invokeMethod(
      WLCLIENT_SETDEVICE_DISPLAYNAME,
      <String, dynamic>{DEVICE_DISPLAYNAME: deviceDisplayName});
  if (response is String) {
    return response;
  } else {
    final MFResponse mfResponse = MFResponse(mfResponse: response);
    throw mfResponse;
  }
}