Class Target
- Espace de noms
- easyar
Target is the base class of all targets in EasyAR that can be tracked by ImageTracker or other algorithms.
Méthodes
runtimeID
Obtient 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()
Retours
| Type | Description |
|---|---|
| Int32 |
uid
Obtient 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()
Retours
| Type | Description |
|---|---|
| String |
name
Obtient 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()
Retours
| Type | Description |
|---|---|
| String |
setName
Definit 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)
Paramètres
| Nom | Type | Description |
|---|---|---|
| name | String |
Retours
| Type | Description |
|---|---|
| Void |
meta
Obtient 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()
Retours
| Type | Description |
|---|---|
| String |
setMeta
Definit 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)
Paramètres
| Nom | Type | Description |
|---|---|---|
| data | String |
Retours
| Type | Description |
|---|---|
| Void |