Class MetadataProvider
Allows querying of geometric metadata in the scene. Can be used to call either the cloud API or a local database.
Inherited Members
Namespace: Unity.Cloud.Metadata
Syntax
public class MetadataProvider : IMetadataProvider
Constructors
MetadataProvider(IServiceHttpClient, IServiceHostResolver, String, String)
Initializes and returns an instance of IMetadataProvider.
Declaration
public MetadataProvider(IServiceHttpClient serviceHttpClient, IServiceHostResolver serviceHostResolver, string sceneId, string sceneVersionId)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceHttpClient | serviceHttpClient | The HTTP client from which to request the app information. |
| IServiceHostResolver | serviceHostResolver | The IServiceHostResolver for determining the service URL. |
| String | sceneId | The ID of the scene. |
| String | sceneVersionId | The version ID of the scene. |
Methods
GetAllKeysAsync()
Gets a list of all the possible root keys in the objects contained in the scene.
Declaration
public async Task<IEnumerable<string>> GetAllKeysAsync()
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<String>> | The list of possible root keys in the scene's metadata. |
Implements
GetMetadataAsync(GetMetadataParameters, CancellationToken)
Gets a list of
Declaration
public async Task<MatchCollection> GetMetadataAsync(GetMetadataParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| GetMetadataParameters | parameters | The parameters containing the filter's conditions to extract only records that fulfill them. |
| CancellationToken | cancellationToken | A cancellation token |
Returns
| Type | Description |
|---|---|
| Task<MatchCollection> | The list of |