Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FaceTemplateDict Class

Namespace: id3.Face

## Definition

Represents a dictionary of face templates.
Python

    class FaceTemplateDict

Dart

    class FaceTemplateDict implements Finalizable

C#

    public partial class FaceTemplateDict

Java

    public class FaceTemplateDict implements AutoCloseable, Serializable

Swift

    public class FaceTemplateDict

C

    typedef struct id3FaceTemplateDict *ID3_FACE_TEMPLATE_DICT;

## Usage

Python

    faceTemplateDictInstance = id3face.FaceTemplateDict()

Explicit destruction

    # ...
    del faceTemplateDictInstance

Dart

    final faceTemplateDictInstance = sdk.FaceTemplateDict();
    // ...

Explicit destruction

    // ...
    faceTemplateDictInstance.dispose()

C#

    using (var faceTemplateDictInstance = new FaceTemplateDict())
    {
       // ...
    }

Explicit destruction

    var faceTemplateDictInstance = new FaceTemplateDict()
    // ...
    faceTemplateDictInstance.Dispose()

Java

    try (FaceTemplateDict faceTemplateDictInstance = new FaceTemplateDict()) {
    // ...
    }

Explicit destruction

    FaceTemplateDict faceTemplateDictInstance = new FaceTemplateDict();
    // ...
    faceTemplateDictInstance.close();

Swift

    private var faceTemplateDictInstance: FaceTemplateDict? = nil
    faceTemplateDictInstance = try FaceTemplateDict()

C

    ID3_FACE_TEMPLATE_DICT hFaceTemplateDict{};
    int err = id3FaceTemplateDict_Initialize(&hFaceTemplateDict);
    if (err == ID3_SUCCESS) {
        // ...
        id3FaceTemplateDict_Dispose(&hFaceTemplateDict);
    }

## Properties

Name | Type | Description
--- | --- | ---
count | int | Gets the number of elements contained in the dict
keys | StringList | Gets a string list containing the keys in the dict.
operator [string key] | FaceTemplate | Gets or sets the element for the key in the dict.

## Iteration

This class supports iteration in Dart, C#, Java and Python.

The iteration is done on keys

## Methods

Name | Description
--- | ---
add | Adds an item to the FaceTemplateDict object.
clear | Clears the FaceTemplateDict object.
clone | Clones the FaceTemplateDict object.
containsKey | Determines whether the FaceTemplateDictobject contains the specified key.
get | Gets an item of the FaceTemplateDict object.
getCount | Gets the number of elements in the FaceTemplateDict object.
remove | Removes an element of the FaceTemplateDict object.
set | Sets an item of the FaceTemplateDict object.