Table of Contents

Class Target

Пространство имен
easyar

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

Target

Методы

runtimeID

Получает 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()

Возвращаемое значение

Тип Описание
Int32

uid

Получает 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()

Возвращаемое значение

Тип Описание
String

name

Получает 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()

Возвращаемое значение

Тип Описание
String

setName

Задает 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)

Параметры

Имя Тип Описание
name String

Возвращаемое значение

Тип Описание
Void

meta

Получает 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()

Возвращаемое значение

Тип Описание
String

setMeta

Задает 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)

Параметры

Имя Тип Описание
data String

Возвращаемое значение

Тип Описание
Void