summaryrefslogtreecommitdiff
path: root/Example Apps/Example ObjC/AlertManager.m
diff options
context:
space:
mode:
Diffstat (limited to 'Example Apps/Example ObjC/AlertManager.m')
-rw-r--r--Example Apps/Example ObjC/AlertManager.m11
1 files changed, 6 insertions, 5 deletions
diff --git a/Example Apps/Example ObjC/AlertManager.m b/Example Apps/Example ObjC/AlertManager.m
index ddc3aad72..d95bd2fc8 100644
--- a/Example Apps/Example ObjC/AlertManager.m
+++ b/Example Apps/Example ObjC/AlertManager.m
@@ -26,11 +26,12 @@ NS_ASSUME_NONNULL_BEGIN
}
/**
- * Creates an alert with up to two lines of text and a close button that will dismiss the alert when tapped
- *
- * @param textField1 The first line of a message to display in the alert
- * @param textField2 The second line of a message to display in the alert
- * @return An SDLAlert object
+ Creates an alert with up to two lines of text and a close button that will dismiss the alert when tapped
+
+ @param textField1 The first line of a message to display in the alert
+ @param textField2 The second line of a message to display in the alert
+ @param iconName The name of the uploaded icon artwork
+ @return An SDLAlert object
*/
+ (SDLAlert *)alertWithMessageAndCloseButton:(NSString *)textField1 textField2:(nullable NSString *)textField2 iconName:(nullable NSString *)iconName {
return [[SDLAlert alloc] initWithAlertText1:textField1 alertText2:textField2 alertText3:nil ttsChunks:nil playTone:NO progressIndicator:NO duration:5000 softButtons:@[[self sdlex_okSoftButton]] alertIcon:[[SDLImage alloc] initWithName:iconName isTemplate:YES]];