///
/// onPlaybackStateChangeData.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 Marc Rousavy @ Margelo
///

import NitroModules

/**
 * Represents an instance of `onPlaybackStateChangeData`, backed by a C++ struct.
 */
public typealias onPlaybackStateChangeData = margelo.nitro.video.onPlaybackStateChangeData

public extension onPlaybackStateChangeData {
  private typealias bridge = margelo.nitro.video.bridge.swift

  /**
   * Create a new instance of `onPlaybackStateChangeData`.
   */
  init(isPlaying: Bool, isBuffering: Bool) {
    self.init(isPlaying, isBuffering)
  }

  var isPlaying: Bool {
    @inline(__always)
    get {
      return self.__isPlaying
    }
    @inline(__always)
    set {
      self.__isPlaying = newValue
    }
  }
  
  var isBuffering: Bool {
    @inline(__always)
    get {
      return self.__isBuffering
    }
    @inline(__always)
    set {
      self.__isBuffering = newValue
    }
  }
}
