VideoFeedConfiguration class
Constructors
-
VideoFeedConfiguration({String? backgroundColor, double? cornerRadius, VideoFeedTitleConfiguration? title, VideoFeedTitlePosition? titlePosition, VideoFeedPadding? titlePadding, VideoFeedPlayIconConfiguration? playIcon, bool? showAdBadge, double? aspectRatio, VideoFeedPadding? contentPadding, double? itemSpacing, bool? enableAutoplay, int? gridColumns, ReplayBadgeConfiguration? replayBadge, VideoFeedShadowConfiguration? shadow})
-
Properties
-
aspectRatio
↔ double?
-
The aspect ratio(width / height) for video feed item.
Defaults to 4 / 6.
Only supported on iOS.
getter/setter pair
-
backgroundColor
↔ String?
-
The background color of video feed.
If you don't set this property, the background will be transparent.
getter/setter pair
-
contentPadding
↔ VideoFeedPadding?
-
The content padding for video feed.
Defaults to { top: 10, right: 10, bottom: 10, left: 10 }.
Only supported on iOS.
getter/setter pair
-
cornerRadius
↔ double?
-
The corner radius of video feed.
Defaults to 10 on iOS. Defaults to 0 on Android.
getter/setter pair
-
enableAutoplay
↔ bool?
-
Specifies if autoplay is enabled.
Defaults to false.
getter/setter pair
-
gridColumns
↔ int?
-
The number of feed items to be displayed per row.
The property only takes effect when video feed mode is grid.
The property value needs to be greater than 0.
Defaults to 2.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setteroverride
-
itemSpacing
↔ double?
-
The item spacing for video feed.
If you don't set this property, the item spacing will be 10 on iOS and 4px on Android.
getter/setter pair
-
playIcon
↔ VideoFeedPlayIconConfiguration?
-
The configuration of video feed play icon.
getter/setter pair
-
replayBadge
↔ ReplayBadgeConfiguration?
-
The configuration of replay badge.
Only supported on iOS.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadow
↔ VideoFeedShadowConfiguration?
-
The shadow configuration of video feed item.
Only supported on iOS.
getter/setter pair
-
showAdBadge
↔ bool?
-
Indicates if the video feed shows ad badge.
Defaults to false.
getter/setter pair
-
title
↔ VideoFeedTitleConfiguration?
-
The configuration of video feed title.
getter/setter pair
-
titlePadding
↔ VideoFeedPadding?
-
The padding of video feed title.
Defaults to { top: 8, right: 8, bottom: 8, left: 8 }.
Only supported on iOS.
getter/setter pair
-
titlePosition
↔ VideoFeedTitlePosition?
-
The title position of video feed.
Defaults to nested.
getter/setter pair