MediaService class abstract

Constructors

MediaService({required ClientContext context})
Returns the new instance of MediaService.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createSubtitle({required String videoId, required String captionId, required Language language}) Future<TwitterResponse<EmptyData, void>>
Use this endpoint to associate uploaded subtitle to an uploaded video.
destroySubtitle({required String videoId, required String captionId, required Language language}) Future<TwitterResponse<EmptyData, void>>
Use this endpoint to dissociate subtitles from a video and delete the subtitles.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
uploadImage({required File file, String? altText, List<String>? additionalOwners}) Future<TwitterResponse<UploadedMediaData, void>>
Use this endpoint to upload images to Twitter.
uploadMedia({required File file, MediaCategory category = MediaCategory.tweet, String? altText, List<String>? additionalOwners, dynamic onProgress(UploadEvent event)?, dynamic onFailed(UploadError error)?}) Future<TwitterResponse<UploadedMediaData, void>>
The integrated endpoint for uploading images, GIFs, and videos to Twitter.

Operators

operator ==(Object other) bool
The equality operator.
inherited