Skip to content
GuidesToolkitAPI

GeometryEditorRef

Defined in: packages/expo-arcgis/src/ExpoArcgisModule.ts:313

Reference to a native interactive GeometryEditor, bound to a <MapView>.

addListener<EventName>(eventName, listener): EventSubscription

Defined in: node_modules/expo-modules-core/build/ts-declarations/EventEmitter.d.ts:44

Adds a listener for the given event name.

EventName extends keyof GeometryEditorEvents

EventName

GeometryEditorEvents[EventName]

EventSubscription

SharedObject.addListener


clearGeometry(): void

Defined in: packages/expo-arcgis/src/ExpoArcgisModule.ts:317

void


deleteSelectedElement(): void

Defined in: packages/expo-arcgis/src/ExpoArcgisModule.ts:320

void


emit<EventName>(eventName, …args): void

Defined in: node_modules/expo-modules-core/build/ts-declarations/EventEmitter.d.ts:57

Synchronously calls all the listeners attached to that specific event. The event can include any number of arguments that will be passed to the listeners.

EventName extends keyof GeometryEditorEvents

EventName

…Parameters<GeometryEditorEvents[EventName]>

void

SharedObject.emit


listenerCount<EventName>(eventName): number

Defined in: node_modules/expo-modules-core/build/ts-declarations/EventEmitter.d.ts:61

Returns a number of listeners added to the given event.

EventName extends keyof GeometryEditorEvents

EventName

number

SharedObject.listenerCount


redo(): void

Defined in: packages/expo-arcgis/src/ExpoArcgisModule.ts:319

void


release(): void

Defined in: node_modules/expo-modules-core/build/ts-declarations/SharedObject.d.ts:18

A function that detaches the JS and native objects to let the native object deallocate before the JS object gets deallocated by the JS garbage collector. Any subsequent calls to native functions of the object will throw an error as it is no longer associated with its native counterpart.

In most cases, you should never need to use this function, except some specific performance-critical cases when manual memory management makes sense and the native object is known to exclusively retain some native memory (such as binary data or image bitmap). Before calling this function, you should ensure that nothing else will use this object later on. Shared objects created by React hooks are usually automatically released in the effect’s cleanup phase, for example: useVideoPlayer() from expo-video and useImage() from expo-image.

void

SharedObject.release


removeAllListeners(eventName): void

Defined in: node_modules/expo-modules-core/build/ts-declarations/EventEmitter.d.ts:52

Removes all listeners for the given event name.

keyof GeometryEditorEvents

void

SharedObject.removeAllListeners


removeListener<EventName>(eventName, listener): void

Defined in: node_modules/expo-modules-core/build/ts-declarations/EventEmitter.d.ts:48

Removes a listener for the given event name.

EventName extends keyof GeometryEditorEvents

EventName

GeometryEditorEvents[EventName]

void

SharedObject.removeListener


setTool(name): void

Defined in: packages/expo-arcgis/src/ExpoArcgisModule.ts:315

string

void


start(type): void

Defined in: packages/expo-arcgis/src/ExpoArcgisModule.ts:314

string

void


optional startObserving<EventName>(eventName): void

Defined in: node_modules/expo-modules-core/build/ts-declarations/EventEmitter.d.ts:66

Function that is automatically invoked when the first listener for an event with the given name is added. Override it in a subclass to perform some additional setup once the event started being observed.

EventName extends keyof GeometryEditorEvents

EventName

void

SharedObject.startObserving


stop(): Geometry | null

Defined in: packages/expo-arcgis/src/ExpoArcgisModule.ts:316

Geometry | null


optional stopObserving<EventName>(eventName): void

Defined in: node_modules/expo-modules-core/build/ts-declarations/EventEmitter.d.ts:71

Function that is automatically invoked when the last listener for an event with the given name is removed. Override it in a subclass to perform some additional cleanup once the event is no longer observed.

EventName extends keyof GeometryEditorEvents

EventName

void

SharedObject.stopObserving


undo(): void

Defined in: packages/expo-arcgis/src/ExpoArcgisModule.ts:318

void