Home > @magiclane/maps-sdk > ContactInfo

ContactInfo class

Contact info class

A ContactInfo can have multiple values of the same ContactInfoFieldType.

Changes made to this object will not be automatically reflected in associated Landmark. Use the Landmark.contactInfo setter to set the contact info for a landmark.

Signature:

export declare class ContactInfo extends GemAutoreleaseObject 

Extends: GemAutoreleaseObject

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ContactInfo class.

Properties

Property

Modifiers

Type

Description

fieldsCount

readonly

number

Gets the field count.

mapId

readonly

number

pointerId

readonly

number | bigint

Methods

Method

Modifiers

Description

addField(type, value, name)

Add a new field to the contact info

create()

static

Creates a new ContactInfo instance

getFieldName(index)

Gets the field name/short description. Depends on the language set. Usually used for display in UI

getFieldType(index)

Gets the field type.

getFieldValue(index)

Gets the field value.

removeField(index)

Removes a field specified by index. The field must already exist.

setField(index, type, value, name)

Sets field type, value and name. The field must already exist.