|
VLCKit
|
#import <VLCDialogProvider.h>
the protocol to use if you decide to run a custom dialog appearance
| - (void) cancelDialogWithReference: | (NSValue *) | reference |
VLC decided to destroy a dialog
| reference | to the dialog to destroy |
| - (void) showErrorWithTitle: | (NSString *) | error | |
| message: | (NSString *) | message | |
called when VLC wants to show an error
| error | the dialog title |
| message | the error message |
| - (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
| title | login dialog title |
| message | an explaining message |
| username | a default username within context |
| askingForStorage | indicator whether storing is even a possibility |
| reference | you need to send the results to |
| - (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
| title | the dialog title |
| message | an explaining message |
| isIndeterminate | indicator whether progress indeterminate |
| position | initial progress position |
| cancelString | optional string for cancel button if operation is cancellable |
| reference | VLC will include in updates |
| - (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
| title | the dialog title |
| message | an explaining message text |
| questionType | a question type |
| cancelString | cancel button text |
| action1String | action 1 text |
| action2String | action 2 text |
| reference | you need to send the action to |
| - (void) updateProgressWithReference: | (NSValue *) | reference | |
| message: | (nullable NSString *) | message | |
| position: | (float) | position | |
called when VLC wants to update an existing progress dialog
| reference | to the existing progress dialog |
| message | updated message |
| position | current position |
1.8.17