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