WatermarksResource class
A watermark resource identifies an image that displays during playbacks of a specified channel's videos. You can also specify a target channel to which the image will link as well as timing details that determine when the watermark appears during video playbacks and the length of time it is visible.
- Annotations
-
- @JsonSerializable()
Constructors
- WatermarksResource({required Timing timing, required Position position, String? imageUrl = '', required Uint8List imageBytes, required String targetChannelId})
- WatermarksResource.fromFile({required Timing timing, required Position position, String? imageUrl = '', required File imageFile, required String targetChannelId})
-
factory
- WatermarksResource.fromFilePath({required Timing timing, required Position position, String? imageUrl = '', required String imageFileName, required String targetChannelId})
-
factory
-
WatermarksResource.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageBytes → Uint8List
-
The size of the watermark image, in bytes.
final
- imageUrl ↔ String?
-
The URL for the channel's watermark image. YouTube will generate this URL
and return it in the API response to a watermark.set request.
getter/setter pair
- position → Position
-
The position object encapsulates information about the spatial position
within the video where the watermark image will display.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetChannelId → String
-
The YouTube channel ID of the channel that the watermark image links to.
final
- timing → Timing
-
The timing object encapsulates information about the time during a video
playback when a channel's watermark image will display.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
imageBytesToList(
dynamic imageBytes) → List< int> -
stringToUint8List(
dynamic value) → Uint8List