VLCKit
Instance Methods | List of all members
<VLCCustomDialogRendererProtocol> Protocol Reference

#import <VLCDialogProvider.h>

Inheritance diagram for <VLCCustomDialogRendererProtocol>:

Instance Methods

(void) - showErrorWithTitle:message:
 
(void) - showLoginWithTitle:message:defaultUsername:askingForStorage:withReference:
 
(void) - showQuestionWithTitle:message:type:cancelString:action1String:action2String:withReference:
 
(void) - showProgressWithTitle:message:isIndeterminate:position:cancelString:withReference:
 
(void) - updateProgressWithReference:message:position:
 
(void) - cancelDialogWithReference:
 

Detailed Description

the protocol to use if you decide to run a custom dialog appearance

Method Documentation

◆ cancelDialogWithReference:

- (void) cancelDialogWithReference: (NSValue *)  reference

VLC decided to destroy a dialog

Parameters
referenceto the dialog to destroy

◆ showErrorWithTitle:message:

- (void) showErrorWithTitle: (NSString *)  error
message: (NSString *)  message 

called when VLC wants to show an error

Parameters
errorthe dialog title
messagethe error message

◆ showLoginWithTitle:message:defaultUsername:askingForStorage:withReference:

- (void) showLoginWithTitle: (NSString *)  title
message: (NSString *)  message
defaultUsername: (nullable NSString *)  username
askingForStorage: (BOOL)  askingForStorage
withReference: (NSValue *)  reference 

called when user logs in to something If VLC includes a keychain module for your platform, a user can store stuff

Parameters
titlelogin dialog title
messagean explaining message
usernamea default username within context
askingForStorageindicator whether storing is even a possibility
referenceyou need to send the results to

◆ showProgressWithTitle:message:isIndeterminate:position:cancelString:withReference:

- (void) showProgressWithTitle: (NSString *)  title
message: (NSString *)  message
isIndeterminate: (BOOL)  isIndeterminate
position: (float)  position
cancelString: (nullable NSString *)  cancelString
withReference: (NSValue *)  reference 

called when VLC wants to show some progress

Parameters
titlethe dialog title
messagean explaining message
isIndeterminateindicator whether progress indeterminate
positioninitial progress position
cancelStringoptional string for cancel button if operation is cancellable
referenceVLC will include in updates

◆ showQuestionWithTitle:message:type:cancelString:action1String:action2String:withReference:

- (void) showQuestionWithTitle: (NSString *)  title
message: (NSString *)  message
type: (VLCDialogQuestionType)  questionType
cancelString: (nullable NSString *)  cancelString
action1String: (nullable NSString *)  action1String
action2String: (nullable NSString *)  action2String
withReference: (NSValue *)  reference 

called when VLC needs the user to decide something

Parameters
titlethe dialog title
messagean explaining message text
questionTypea question type
cancelStringcancel button text
action1Stringaction 1 text
action2Stringaction 2 text
referenceyou need to send the action to

◆ updateProgressWithReference:message:position:

- (void) updateProgressWithReference: (NSValue *)  reference
message: (nullable NSString *)  message
position: (float)  position 

called when VLC wants to update an existing progress dialog

Parameters
referenceto the existing progress dialog
messageupdated message
positioncurrent position

The documentation for this protocol was generated from the following file: