Table of Contents

Class Target

Namespace
easyar

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

Target

Methods

runtimeID

Get target id. The target id is an integer 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

Int32

uid

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

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

String

name

Get target name. The name is used to distinguish targets in the json file.

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

String

setName

Set target name. This operation will overwrite the previous setting or the 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 String

Returns

Void

meta

Get the meta data set by setMetaData. Or get the meta data set by the server in the 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

String

setMeta

Set meta data. This operation will overwrite the previous setting or the 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

data String

Returns

Void