MeiCam SDK For iOS
3.14.0
|
Asset package manager for managing assets in video. More...
#import <NvsAssetPackageManager.h>
Instance Methods | |
(NSString *) | - getAssetPackageIdFromAssetPackageFilePath: |
Gets asset package ID from asset package path. More... | |
(int) | - getAssetPackageVersionFromAssetPackageFilePath: |
Gets the package version number from package file path. More... | |
(NvsAssetPackageManagerError) | - installAssetPackage:license:type:sync:assetPackageId: |
Installs asset package. More... | |
(NvsAssetPackageManagerError) | - upgradeAssetPackage:license:type:sync:assetPackageId: |
Upgrades asset package. More... | |
(NvsAssetPackageManagerError) | - uninstallAssetPackage:type: |
Uninstalls asset package. More... | |
(NvsAssetPackageStatus) | - getAssetPackageStatus:type: |
Get the state of asset package. More... | |
(int) | - getAssetPackageVersion:type: |
Gets the version number of the installed asset package. More... | |
(NSString *) | - getAssetPackageMinSdkVersion:type: |
Gets the lowest SDK version required by the installed asset package. More... | |
(NSString *) | - getAssetPackageContentType:type: |
Gets the contentType required by the installed asset package. More... | |
(NSArray< NvsExpressionParam * > *) | - getExpValueList:type: |
Gets the expValue list required by the installed asset package. More... | |
(NSDictionary< NSString *, NSString * > *) | - getTranslationMap:type: |
Translate the text required by the installed asset package. More... | |
(int) | - getAssetPackageSupportedAspectRatio:type: |
Gets the supported aspect ratio of the asset package. More... | |
(NSArray *) | - getAssetPackageListOfType: |
Gets a list of asset packages of certain type. More... | |
(BOOL) | - isCustomAnimatedSticker: |
Defines if it is a customized sticker. More... | |
(BOOL) | - isParticleFx: |
Defines if it is particle Fx. More... | |
(BOOL) | - isThemeContainMusic: |
Check whether a theme package contain music. More... | |
(NSString *) | - GetVideoFxAssetPackageDescription: |
Gets the Fx description of an asset of type VideoFx. More... | |
(NSArray< NvsTemplateFootageDesc * > *) | - getTemplateFootages: |
Gets the footage description list of the Template asset. More... | |
(NSArray< NvsTemplateCaptionDesc * > *) | - getTemplateCaptions: |
Gets the caption description list of the Template asset. More... | |
(int) | - getTemplateCurrentAspectRatio: |
Gets the aspect ratio which is template using. More... | |
(NSArray< NvsTemplateCompoundCaptionDesc * > *) | - getTemplateCampoundCaptions: |
Gets the compound caption description list of the Template asset. More... | |
(BOOL) | - changeTemplateAspectRatio:aspectRatio: |
Change aspect ratio of template. More... | |
(NSString *) | - getARSceneAssetPackagePrompt: |
Get the prompt message of the ARScene asset package. More... | |
(BOOL) | - isARSceneAssetPackageContainMakeup: |
Is arScene assetPackage conflit with makeup. More... | |
(BOOL) | - isARSceneAssetPackageContainFaceMesh: |
Is arScene assetPackage conflit with face mesh. More... | |
(BOOL) | - isARSceneAssetPackageContainWarp: |
Is arScene assetPackage conflit with warp. More... | |
(BOOL) | - getARSceneAssetPackage:beautyPreset: |
Get Beauty effect preset in a ARScene asset package. More... | |
(BOOL) | - getARSceneAssetPackage:shapeBeautificationPreset: |
Get shape beautification effect preset in a ARScene asset package. More... | |
(BOOL) | - getARSceneAssetPackage:cameraPreset: |
Get camera preset in a ARScene asset package. More... | |
(BOOL) | - hasAudioInAssetPackage:type: |
Defines if there is audio in asset package. More... | |
(BOOL) | - hasDetectionInAssetPackage:type: |
Whether the ARScene package has detection requirements. More... | |
Properties | |
id< NvsAssetPackageManagerDelegate > | delegate |
id< NvsAssetPackageManagerGenerateTemplateDelegate > | generateTemplateDelegate |
Asset package manager for managing assets in video.
In the development of the SDK, the asset package manager unifies the various special asset packages including subtitles, themes, animation stickers, etc. for installation, upgrading, and uninstallation. When it is installing, upgrading, and uninstalling, there will be a corresponding error type for errors to be quickly located and resolved.
- (BOOL) changeTemplateAspectRatio: | (NSString *) | uuidString | |
aspectRatio: | (int) | aspectRatio | |
Change aspect ratio of template.
uuidString | special effect uuid |
- (BOOL) getARSceneAssetPackage: | (NSString *) | uuidString | |
beautyPreset: | (NvsARSceneBeautyPreset *) | beautyPreset | |
Get Beauty effect preset in a ARScene asset package.
uuidString | asset package uuid |
beautyPreset | a pointer of NvsARSceneBeautyPreset, preset data will be returned in this structure |
- (BOOL) getARSceneAssetPackage: | (NSString *) | uuidString | |
cameraPreset: | (NvsARSceneCameraPreset *) | cameraPreset | |
Get camera preset in a ARScene asset package.
uuidString | asset package uuid |
cameraPreset | a pointer of NvsARSceneCameraPreset preset data will be returned in this structure |
- (BOOL) getARSceneAssetPackage: | (NSString *) | uuidString | |
shapeBeautificationPreset: | (NvsARSceneShapeBeautificationPreset *) | shapeBeautificationPreset | |
Get shape beautification effect preset in a ARScene asset package.
uuidString | asset package uuid |
shapeBeautificationPreset | a pointer of NvsARSceneShapeBeautificationPreset, preset data will be returned in this structure |
- (NSString *) getARSceneAssetPackagePrompt: | (NSString *) | uuidString |
Get the prompt message of the ARScene asset package.
uuidString | asset package uuid |
- (NSString*) getAssetPackageContentType: | (NSString *) | assetPackageId | |
type: | (NvsAssetPackageType) | type | |
Gets the contentType required by the installed asset package.
assetPackageId | ID of the asset package to be checked |
type | Type of the asset package to be checked |
Need install this package before use this method.Please check this package status by getAssetPackageStatus()
- (NSString *) getAssetPackageIdFromAssetPackageFilePath: | (NSString *) | assetPackageFilePath |
Gets asset package ID from asset package path.
assetPackageFilePath | Asset package file path |
- (NSArray *) getAssetPackageListOfType: | (NvsAssetPackageType) | type |
Gets a list of asset packages of certain type.
type | Asset package type |
- (NSString*) getAssetPackageMinSdkVersion: | (NSString *) | assetPackageId | |
type: | (NvsAssetPackageType) | type | |
Gets the lowest SDK version required by the installed asset package.
assetPackageId | ID of the asset package to be checked |
type | Type of the asset package to be checked |
Need install this package before use this method.Please check this package status by getAssetPackageStatus()
- (NvsAssetPackageStatus) getAssetPackageStatus: | (NSString *) | assetPackageId | |
type: | (NvsAssetPackageType) | type | |
Get the state of asset package.
assetPackageId | ID of the asset package to be checked |
type | Asset package type |
- (int) getAssetPackageSupportedAspectRatio: | (NSString *) | assetPackageId | |
type: | (NvsAssetPackageType) | type | |
Gets the supported aspect ratio of the asset package.
assetPackageId | ID of the asset package to be checked. |
type | Type of the asset package to be checked. |
- (int) getAssetPackageVersion: | (NSString *) | assetPackageId | |
type: | (NvsAssetPackageType) | type | |
Gets the version number of the installed asset package.
assetPackageId | ID of the asset package to be checked |
type | Type of the asset package to be checked |
Need install this package before use this method.Please check this package status by getAssetPackageStatus()
- (int) getAssetPackageVersionFromAssetPackageFilePath: | (NSString *) | assetPackageFilePath |
Gets the package version number from package file path.
assetPackageFilePath | Asset package file path |
- (NSArray <NvsExpressionParam *>*) getExpValueList: | (NSString *) | assetPackageId | |
type: | (NvsAssetPackageType) | type | |
Gets the expValue list required by the installed asset package.
assetPackageId | ID of the asset package to be checked |
type | Type of the asset package to be checked |
Need install this package before use this method.Please check this package status by getAssetPackageStatus()
- (NSArray <NvsTemplateCompoundCaptionDesc *>*) getTemplateCampoundCaptions: | (NSString *) | uuidString |
Gets the compound caption description list of the Template asset.
uuidString | special effect uuid |
- (NSArray <NvsTemplateCaptionDesc *>*) getTemplateCaptions: | (NSString *) | uuidString |
Gets the caption description list of the Template asset.
uuidString | special effect uuid |
- (int) getTemplateCurrentAspectRatio: | (NSString *) | uuidString |
Gets the aspect ratio which is template using.
uuidString | special effect uuid |
- (NSArray <NvsTemplateFootageDesc *>*) getTemplateFootages: | (NSString *) | uuidString |
Gets the footage description list of the Template asset.
uuidString | special effect uuid |
- (NSDictionary<NSString*, NSString*>*) getTranslationMap: | (NSString *) | assetPackageId | |
type: | (NvsAssetPackageType) | type | |
Translate the text required by the installed asset package.
assetPackageId | ID of the asset package to be checked |
type | Type of the asset package to be checked |
Need install this package before use this method.Please check this package status by getAssetPackageStatus()
- (NSString *) GetVideoFxAssetPackageDescription: | (NSString *) | uuidString |
Gets the Fx description of an asset of type VideoFx.
uuidString | Fx asset uuid |
- (BOOL) hasAudioInAssetPackage: | (NSString *) | uuidString | |
type: | (NvsAssetPackageType) | assetPackageType | |
Defines if there is audio in asset package.
uuidString | Sticker uuid |
assetPackageType | Asset package type |
- (BOOL) hasDetectionInAssetPackage: | (NSString *) | uuidString | |
type: | (NvsAssetPackageType) | assetPackageType | |
Whether the ARScene package has detection requirements.
uuidString | ARScene package uuid |
assetPackageType | Asset package type |
- (NvsAssetPackageManagerError) installAssetPackage: | (NSString *) | assetPackageFilePath | |
license: | (NSString *) | licenseFilePath | |
type: | (NvsAssetPackageType) | type | |
sync: | (BOOL) | synchronous | |
assetPackageId: | (NSMutableString *) | assetPackageId | |
Installs asset package.
assetPackageFilePath | Asset package file path |
licenseFilePath | License file path |
type | Asset package type |
synchronous | Whether to install synchronously: A value of YES will cause the installation process to block the current thread until the installation succeeds or fails. NO means results in the installation process being asynchronously notified by the delegate (but also notified by the current thread). |
Notice | if type is template, this param will be ignored and will install asynchronously |
assetPackageId | output value. Output asset package ID |
- (BOOL) isARSceneAssetPackageContainFaceMesh: | (NSString *) | uuidString |
Is arScene assetPackage conflit with face mesh.
uuidString | asset package uuid |
- (BOOL) isARSceneAssetPackageContainMakeup: | (NSString *) | uuidString |
Is arScene assetPackage conflit with makeup.
uuidString | asset package uuid |
- (BOOL) isARSceneAssetPackageContainWarp: | (NSString *) | uuidString |
Is arScene assetPackage conflit with warp.
uuidString | asset package uuid |
- (BOOL) isCustomAnimatedSticker: | (NSString *) | uuidString |
Defines if it is a customized sticker.
uuidString | Sticker uuid |
- (BOOL) isParticleFx: | (NSString *) | uuidString |
Defines if it is particle Fx.
uuidString | Fx Asset uuid |
- (BOOL) isThemeContainMusic: | (NSString *) | uuidString |
Check whether a theme package contain music.
uuidString | theme package uuid |
- (NvsAssetPackageManagerError) uninstallAssetPackage: | (NSString *) | assetPackageId | |
type: | (NvsAssetPackageType) | type | |
Uninstalls asset package.
assetPackageId | ID of the asset package to be uninstalled |
type | Type of the asset package to be uninstalled |
- (NvsAssetPackageManagerError) upgradeAssetPackage: | (NSString *) | assetPackageFilePath | |
license: | (NSString *) | licenseFilePath | |
type: | (NvsAssetPackageType) | type | |
sync: | (BOOL) | synchronous | |
assetPackageId: | (NSMutableString *) | assetPackageId | |
Upgrades asset package.
assetPackageFilePath | File path of the asset package to be upgraded |
licenseFilePath | License file path of the asset package to be upgraded |
type | Type of the asset package to be upgraded |
synchronous | Whether to upgrade synchronously. Value of YES will cause the upgrade process to block the current thread until the upgrade succeeds or fails. NO results in the upgrade process being asynchronously notified by the delegate (it can also be notified by the current thread). |
Notice | if type is template, this param will be ignored and will install asynchronously |
assetPackageId | Output value, output the assets package ID |
|
readwritenonatomicweak |
|
readwritenonatomicweak |