MethodChannelHumanAvatar class
An implementation of HumanAvatarPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- HumanAvatarPlatform
- MethodChannelHumanAvatar
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createAvatar(
String secretKey, String gender, String photoName, String photoData) → Future< AvatarData?> -
this is for create human_avatar Avatar.
Here is Api Header
Here is Api body
createAvatar return image Avatar response url
Here is Api add request .....
handle json response data class
Here is Api response check error or success
inherited
-
createVideoAvatar(
String secretKey, String imageUrl, String speechText, String gender, String avatarName, String videoName, String avatarId, Null onRender(CreateVideoAvatarData value)) → Future< CreateVideoAvatarData?> -
this is api implementation for create human_avatar Video avatar
Here is Api base Url human_avatar create video
Here is Api Header human_avatar create video
Here is Api body human_avatar create video
createVideoAvatar function return response after renderVideoAvatar response
Here is Api add request human_avatar create video
handle json response data class CreateVideoAvatarData
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
renderVideoAvatar(
String secretKey, String videoId, Null onRender(CreateVideoAvatarData value)) → Future< CreateVideoAvatarData?> -
this is api implementation for render human_avatar Video avatar by its id
Here is Api base Url human_avatar render video
Here is Api header human_avatar render video
Here is Api add request human_avatar render video
Calling function retrieveVideoAvatar retrieve video Avatar on render success
inherited
-
retrieveAllVideos(
String secretKey, String? page, String? limit) → Future< String?> -
this is api implementation for get all human_avatar Video avatar list
Here is base url retrieve all videos with pagination
Add Header
Here is Add request
retrieveAllVideos will return all videos that have create on
Elai.
if something got error it will return nullinherited -
retrieveVideoAvatar(
String secretKey, String videoId, Null onRender(CreateVideoAvatarData value)) → Future< CreateVideoAvatarData?> -
this is api implementation for retrieve Video avatar by its id
retrieve video header
retrieveVideoAvatar is return only one video
To fetch video user will have to pass
videId
of videoonRender
is acallback
function that call after video render.secretKey
is mandatory key if something will happen wrong then retrieveVideoAvatar will return nullinherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited