NpawPluginInstance Extension

extension NpawPluginInstance
  • Declaration

    Swift

    public static var isInitialized: Bool
  • Declaration

    Swift

    public var isCustomNpawPlugin: Bool { get set }
  • Declaration

    Swift

    public static var ybLogLevel: Level { get }
  • Declaration

    Swift

    public static func build(from settings: YouboraSettings) -> NpawPluginInstance
  • The VideoAdapter associated with this plugin instance, or nil if none has been set.

    Assign the adapter returned by videoBuilder() here so that components which only hold a reference to the plugin instance (such as the player adapter) can retrieve it later. Setting the property to nil removes the association.

    The value is kept in a shared, thread-safe weak-to-weak map, so it is released automatically once the adapter or this plugin instance is deallocated.

    Declaration

    Swift

    public var videoAdapter: NpawPlugin.VideoAdapter? { get set }