Skip to content

ReplaceSmartLabelImageDataAsync

Description

Replaces the image data of the specified Smart Label object.

Syntax

public Task ReplaceSmartLabelImageDataAsync(int mapId, object image)

Warning

This method returns a Task. To ensure that the operation completes and any potential exceptions are properly captured, always call it with await. Omitting await may result in the operation being terminated midway or errors may go undetected.

Parameter

mapId

Specifies the map ID of the target object.
The map ID can be checked in the application's UI.

Image Object Map ID

bitmap

The image content to replace the existing value with.

  • Android
    Specify an object of type Android.Graphics.Bitmap.
  • iOS
    Specify an object of type UIKit.UIImage.