MoEngageInAppVideoWidget
@objcMembers
@MainActor
public class MoEngageInAppVideoWidget : UIView
extension MoEngageInAppVideoWidget: MoEngageInAppWidgetResizingCallbackListnerDelegate
Video widget view for inapps.
-
The data for this widget.
Declaration
Swift
@MainActor public let widget: MoEngageInAppWidget -
The end position for this widget.
Declaration
Swift
@MainActor public private(set) var endPosition: CGPoint { get } -
The delegate that handles fullscreen resize.
Declaration
Swift
@MainActor public weak var resizeDelegate: MoEngageInAppWidgetResizingDelegate? -
Creates and adds a new video widget view.
Declaration
Swift
@MainActor public init( withInAppWidget widget: MoEngageInAppWidget, forTemplateType templateType: MoEngageInAppTemplateType, inContainer viewContainer: UIView, withStartPosition startPosition: CGPoint, andCampaignID campaignId: String, resizeDelegate: MoEngageInAppWidgetResizingDelegate? = nil ) throwsParameters
widgetThe widget data.
templateTypeThe inapp template type for which wiget created.
viewContainerThe container view.
startPositionThe start position.
campaignIdThe current campaign id.
resizeDelegateThe fullscreen resize delegate.
-
Callback for view will change window.
Declaration
Swift
@MainActor public override func willMove(toWindow newWindow: UIWindow?)Parameters
newWindowThe new parent window.
-
Callback for view added to window.
Declaration
Swift
@MainActor public override func didMoveToWindow() -
Declaration
Swift
@MainActor public override func observeValue( forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer? ) -
Callback for view removed from superview.
Declaration
Swift
@MainActor public override func removeFromSuperview() -
Handle widget resize.
Declaration
Swift
@MainActor public func resized( to displaySize: MoEngageInAppDisplaySize, in container: MoEngageInAppContainer, xScale: CGFloat, yScale: CGFloat )Parameters
displaySizeThe new size.
containerThe container in which reszing happened.
xScaleThe x-axis resize scale.
yScaleThe y-axis resize scale.