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