Table of Contents

Class Target

Namespace
easyar

Target is the base class of all targets in EasyAR that can be tracked by ImageTracker or other algorithms.

Target

Methods

runtimeID

Gets the target id. The target id is integer data created at runtime and is valid (non-zero) only after successful configuration. This id is non-zero and globally increasing.

int easyar_Target_runtimeID(const easyar_Target * This)
int runtimeID()
public int runtimeID()
fun runtimeID(): Int
- (int)runtimeID
public func runtimeID() -> Int32
public virtual int runtimeID()

Returns

Type Description
Int32

uid

Gets the target uid. The uid of ImageTarget is used in cloud recognition algorithms. When cloud recognition is not integrated, you can set this uid in the json configuration and use it in your own code as another way to distinguish targets.

void easyar_Target_uid(const easyar_Target * This, easyar_String * * Return)
std::string uid()
public java.lang.@Nonnull String uid()
fun uid(): String
- (NSString *)uid
public func uid() -> String
public virtual string uid()

Returns

Type Description
String

name

Gets the target name. The name is used to distinguish targets in json files.

void easyar_Target_name(const easyar_Target * This, easyar_String * * Return)
std::string name()
public java.lang.@Nonnull String name()
fun name(): String
- (NSString *)name
public func name() -> String
public virtual string name()

Returns

Type Description
String

setName

Sets the target name. This operation overwrites the previous setting or data returned by the server.

void easyar_Target_setName(easyar_Target * This, easyar_String * name)
void setName(std::string name)
public void setName(java.lang.@Nonnull String name)
fun setName(name: String): Unit
- (void)setName:(NSString *)name
public func setName(_ name: String) -> Void
public virtual void setName(string name)

Parameters

Name Type Description
name String

Returns

Type Description
Void

meta

Gets the meta data set by setMetaData, or gets the meta data set by the server from a target returned by cloud recognition.

void easyar_Target_meta(const easyar_Target * This, easyar_String * * Return)
std::string meta()
public java.lang.@Nonnull String meta()
fun meta(): String
- (NSString *)meta
public func meta() -> String
public virtual string meta()

Returns

Type Description
String

setMeta

Sets meta data. This operation overwrites the previous setting or data returned by the server.

void easyar_Target_setMeta(easyar_Target * This, easyar_String * data)
void setMeta(std::string data)
public void setMeta(java.lang.@Nonnull String data)
fun setMeta(data: String): Unit
- (void)setMeta:(NSString *)data
public func setMeta(_ data: String) -> Void
public virtual void setMeta(string data)

Parameters

Name Type Description
data String

Returns

Type Description
Void