Interface libvlc_dialog_display_progress_cb

All Superinterfaces:
com.sun.jna.Callback

public interface libvlc_dialog_display_progress_cb extends com.sun.jna.Callback
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.sun.jna.Callback

    com.sun.jna.Callback.UncaughtExceptionHandler
  • Field Summary

    Fields inherited from interface com.sun.jna.Callback

    FORBIDDEN_NAMES, METHOD_NAME
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    callback(com.sun.jna.Pointer p_data, libvlc_dialog_id p_id, String psz_title, String psz_text, int b_indeterminate, float f_position, String psz_cancel)
    Called when a progress dialog needs to be displayed
  • Method Details

    • callback

      void callback(com.sun.jna.Pointer p_data, libvlc_dialog_id p_id, String psz_title, String psz_text, int b_indeterminate, float f_position, String psz_cancel)
      Called when a progress dialog needs to be displayed

      If cancellable (psz_cancel != NULL), you can cancel this dialog by calling libvlc_dialog_dismiss()

      to receive this callack, libvlc_dialog_cbs.pf_cancel and libvlc_dialog_cbs.pf_update_progress should not be NULL.

      Parameters:
      p_data - opaque pointer for the callback
      p_id - id used to interact with the dialog
      psz_title - title of the diaog
      psz_text - text of the dialog
      b_indeterminate - true if the progress dialog is indeterminate
      f_position - initial position of the progress bar (between 0.0 and 1.0)
      psz_cancel - text of the cancel button, if NULL the dialog is not cancellable