Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start updating RPCs with generated initializers #1824

Draft
wants to merge 16 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
output/

# OS generated files #
######################
Expand Down
2 changes: 2 additions & 0 deletions SmartDeviceLink/private/SDLRPCParameterNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ extern SDLRPCParameterName const SDLRPCParameterNameApproximatePosition;
extern SDLRPCParameterName const SDLRPCParameterNameAppBundleId;
extern SDLRPCParameterName const SDLRPCParameterNameAppDisplayName;
extern SDLRPCParameterName const SDLRPCParameterNameAppHMIType;
extern SDLRPCParameterName const SDLRPCParameterNameAppIcon;
extern SDLRPCParameterName const SDLRPCParameterNameAppId;
extern SDLRPCParameterName const SDLRPCParameterNameAppInfo;
extern SDLRPCParameterName const SDLRPCParameterNameAppName;
Expand Down Expand Up @@ -158,6 +159,7 @@ extern SDLRPCParameterName const SDLRPCParameterNameCloudTransportType;
extern SDLRPCParameterName const SDLRPCParameterNameCurrentForecast;
extern SDLRPCParameterName const SDLRPCParameterNameCurrentForecastSupported;
extern SDLRPCParameterName const SDLRPCParameterNameCurrentTemperature;
extern SDLRPCParameterName const SDLRPCParameterNameCurrentTemperatureAvailable;
extern SDLRPCParameterName const SDLRPCParameterNameCushion;
extern SDLRPCParameterName const SDLRPCParameterNameCustomButtonId;
extern SDLRPCParameterName const SDLRPCParameterNameCustomPresets;
Expand Down
2 changes: 2 additions & 0 deletions SmartDeviceLink/private/SDLRPCParameterNames.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
SDLRPCParameterName const SDLRPCParameterNameApproximatePosition = @"approximatePosition";
SDLRPCParameterName const SDLRPCParameterNameAppBundleId = @"appBundleID";
SDLRPCParameterName const SDLRPCParameterNameAppHMIType = @"appHMIType";
SDLRPCParameterName const SDLRPCParameterNameAppIcon = @"appIcon";
SDLRPCParameterName const SDLRPCParameterNameAppId = @"appID";
SDLRPCParameterName const SDLRPCParameterNameAppInfo = @"appInfo";
SDLRPCParameterName const SDLRPCParameterNameAppName = @"appName";
Expand Down Expand Up @@ -157,6 +158,7 @@
SDLRPCParameterName const SDLRPCParameterNameCurrentForecast = @"currentForecast";
SDLRPCParameterName const SDLRPCParameterNameCurrentForecastSupported = @"currentForecastSupported";
SDLRPCParameterName const SDLRPCParameterNameCurrentTemperature = @"currentTemperature";
SDLRPCParameterName const SDLRPCParameterNameCurrentTemperatureAvailable = @"currentTemperatureAvailable";
SDLRPCParameterName const SDLRPCParameterNameCushion = @"cushion";
SDLRPCParameterName const SDLRPCParameterNameCustomButtonId = @"customButtonID";
SDLRPCParameterName const SDLRPCParameterNameCustomPresets = @"customPresets";
Expand Down
60 changes: 52 additions & 8 deletions SmartDeviceLink/public/SDLAddCommand.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,34 @@
// SDLAddCommand.h
/*
* Copyright (c) 2020, SmartDeviceLink Consortium, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following
* disclaimer in the documentation and/or other materials provided with the
* distribution.
*
* Neither the name of the SmartDeviceLink Consortium Inc. nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/


#import "SDLRPCRequest.h"
Expand All @@ -9,6 +39,8 @@
@class SDLImage;
@class SDLMenuParams;

NS_ASSUME_NONNULL_BEGIN

/**
* This class will add a command to the application's Command Menu
*
Expand All @@ -25,10 +57,22 @@
* @since SDL 1.0
* @see SDLDeleteCommand, SDLAddSubMenu, SDLDeleteSubMenu
*/
@interface SDLAddCommand : SDLRPCRequest

NS_ASSUME_NONNULL_BEGIN
/**
* @param cmdID - @(cmdID)
* @return A SDLAddCommand object
*/
- (instancetype)initWithCmdID:(UInt32)cmdID;

@interface SDLAddCommand : SDLRPCRequest
/**
* @param cmdID - @(cmdID)
* @param menuParams - menuParams
* @param vrCommands - vrCommands
* @param cmdIcon - cmdIcon
* @return A SDLAddCommand object
*/
- (instancetype)initWithCmdID:(UInt32)cmdID menuParams:(nullable SDLMenuParams *)menuParams vrCommands:(nullable NSArray<NSString *> *)vrCommands cmdIcon:(nullable SDLImage *)cmdIcon;

/**
* Constructs a SDLAddCommand with a handler callback when an event occurs.
Expand All @@ -37,7 +81,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @return A SDLAddCommand object
*/
- (instancetype)initWithHandler:(nullable SDLRPCCommandNotificationHandler)handler;
- (instancetype)initWithHandler:(nullable SDLRPCCommandNotificationHandler)handler __deprecated_msg("Use initWithCmdId: instead");

/**
* Convenience init for creating a voice command menu item.
Expand All @@ -49,7 +93,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param handler Called when the VR system recognizes a phrase in `vrCommands`
* @return A SDLAddCommand object
*/
- (instancetype)initWithId:(UInt32)commandId vrCommands:(nullable NSArray<NSString *> *)vrCommands handler:(nullable SDLRPCCommandNotificationHandler)handler;
- (instancetype)initWithId:(UInt32)commandId vrCommands:(nullable NSArray<NSString *> *)vrCommands handler:(nullable SDLRPCCommandNotificationHandler)handler __deprecated_msg("Use initWithCmdId: instead");

/**
* Convenience init for creating a menu item with text.
Expand All @@ -60,7 +104,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param handler Called when the menu item is selected and/or when the VR system recognizes a phrase in `vrCommands`
* @return A SDLAddCommand object
*/
- (instancetype)initWithId:(UInt32)commandId vrCommands:(nullable NSArray<NSString *> *)vrCommands menuName:(NSString *)menuName handler:(nullable SDLRPCCommandNotificationHandler)handler;
- (instancetype)initWithId:(UInt32)commandId vrCommands:(nullable NSArray<NSString *> *)vrCommands menuName:(NSString *)menuName handler:(nullable SDLRPCCommandNotificationHandler)handler __deprecated_msg("Use initWithCmdId: instead");

/**
* Convenience init for creating a menu item with text and a custom icon.
Expand All @@ -78,7 +122,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param handler Called when the menu item is selected and/or when the VR system recognizes a phrase in `vrCommands`
* @return A SDLAddCommand object
*/
- (instancetype)initWithId:(UInt32)commandId vrCommands:(nullable NSArray<NSString *> *)vrCommands menuName:(NSString *)menuName parentId:(UInt32)parentId position:(UInt16)position iconValue:(nullable NSString *)iconValue iconType:(nullable SDLImageType)iconType iconIsTemplate:(BOOL)iconIsTemplate handler:(nullable SDLRPCCommandNotificationHandler)handler;
- (instancetype)initWithId:(UInt32)commandId vrCommands:(nullable NSArray<NSString *> *)vrCommands menuName:(NSString *)menuName parentId:(UInt32)parentId position:(UInt16)position iconValue:(nullable NSString *)iconValue iconType:(nullable SDLImageType)iconType iconIsTemplate:(BOOL)iconIsTemplate handler:(nullable SDLRPCCommandNotificationHandler)handler __deprecated_msg("Use initWithCmdId: instead");

/**
* Convenience init for creating a menu item with text and a custom icon.
Expand All @@ -94,7 +138,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param handler Called when the menu item is selected and/or when the VR system recognizes a phrase in `vrCommands`
* @return A SDLAddCommand object
*/
- (instancetype)initWithId:(UInt32)commandId vrCommands:(nullable NSArray<NSString *> *)vrCommands menuName:(NSString *)menuName parentId:(UInt32)parentId position:(UInt16)position icon:(nullable SDLImage *)icon handler:(nullable SDLRPCCommandNotificationHandler)handler;
- (instancetype)initWithId:(UInt32)commandId vrCommands:(nullable NSArray<NSString *> *)vrCommands menuName:(NSString *)menuName parentId:(UInt32)parentId position:(UInt16)position icon:(nullable SDLImage *)icon handler:(nullable SDLRPCCommandNotificationHandler)handler __deprecated_msg("Use initWithCmdId: instead");

/**
* A handler that will let you know when the button you created is subscribed.
Expand Down
20 changes: 20 additions & 0 deletions SmartDeviceLink/public/SDLAddCommand.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,26 @@ - (instancetype)init {
}
#pragma clang diagnostic pop

- (instancetype)initWithCmdID:(UInt32)cmdID {
self = [self init];
if (!self) {
return nil;
}
self.cmdID = @(cmdID);
return self;
}

- (instancetype)initWithCmdID:(UInt32)cmdID menuParams:(nullable SDLMenuParams *)menuParams vrCommands:(nullable NSArray<NSString *> *)vrCommands cmdIcon:(nullable SDLImage *)cmdIcon {
self = [self initWithCmdID:cmdID];
if (!self) {
return nil;
}
self.menuParams = menuParams;
self.vrCommands = vrCommands;
self.cmdIcon = cmdIcon;
return self;
}

- (instancetype)initWithHandler:(nullable SDLRPCCommandNotificationHandler)handler {
self = [self init];
if (!self) {
Expand Down
5 changes: 2 additions & 3 deletions SmartDeviceLink/public/SDLAddSubMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

@class SDLImage;

NS_ASSUME_NONNULL_BEGIN

/**
* Add a SDLSubMenu to the Command Menu
* <p>
Expand All @@ -50,9 +52,6 @@
* Since <b>SmartDeviceLink 1.0</b><br>
* see SDLDeleteSubMenu SDLAddCommand SDLDeleteCommand
*/

NS_ASSUME_NONNULL_BEGIN

@interface SDLAddSubMenu : SDLRPCRequest

/**
Expand Down
46 changes: 44 additions & 2 deletions SmartDeviceLink/public/SDLAirbagStatus.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
// SDLAirbagStatus.h
//
/*
* Copyright (c) 2020, SmartDeviceLink Consortium, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following
* disclaimer in the documentation and/or other materials provided with the
* distribution.
*
* Neither the name of the SmartDeviceLink Consortium Inc. nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/

#import "SDLRPCMessage.h"

Expand All @@ -12,6 +41,19 @@ NS_ASSUME_NONNULL_BEGIN
*/
@interface SDLAirbagStatus : SDLRPCStruct

/**
* @param driverAirbagDeployed - driverAirbagDeployed
* @param driverSideAirbagDeployed - driverSideAirbagDeployed
* @param driverCurtainAirbagDeployed - driverCurtainAirbagDeployed
* @param passengerAirbagDeployed - passengerAirbagDeployed
* @param passengerCurtainAirbagDeployed - passengerCurtainAirbagDeployed
* @param driverKneeAirbagDeployed - driverKneeAirbagDeployed
* @param passengerSideAirbagDeployed - passengerSideAirbagDeployed
* @param passengerKneeAirbagDeployed - passengerKneeAirbagDeployed
* @return A SDLAirbagStatus object
*/
- (instancetype)initWithDriverAirbagDeployed:(SDLVehicleDataEventStatus)driverAirbagDeployed driverSideAirbagDeployed:(SDLVehicleDataEventStatus)driverSideAirbagDeployed driverCurtainAirbagDeployed:(SDLVehicleDataEventStatus)driverCurtainAirbagDeployed passengerAirbagDeployed:(SDLVehicleDataEventStatus)passengerAirbagDeployed passengerCurtainAirbagDeployed:(SDLVehicleDataEventStatus)passengerCurtainAirbagDeployed driverKneeAirbagDeployed:(SDLVehicleDataEventStatus)driverKneeAirbagDeployed passengerSideAirbagDeployed:(SDLVehicleDataEventStatus)passengerSideAirbagDeployed passengerKneeAirbagDeployed:(SDLVehicleDataEventStatus)passengerKneeAirbagDeployed;

/**
References signal "VedsDrvBag_D_Ltchd". See VehicleDataEventStatus.

Expand Down
16 changes: 16 additions & 0 deletions SmartDeviceLink/public/SDLAirbagStatus.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@

@implementation SDLAirbagStatus

- (instancetype)initWithDriverAirbagDeployed:(SDLVehicleDataEventStatus)driverAirbagDeployed driverSideAirbagDeployed:(SDLVehicleDataEventStatus)driverSideAirbagDeployed driverCurtainAirbagDeployed:(SDLVehicleDataEventStatus)driverCurtainAirbagDeployed passengerAirbagDeployed:(SDLVehicleDataEventStatus)passengerAirbagDeployed passengerCurtainAirbagDeployed:(SDLVehicleDataEventStatus)passengerCurtainAirbagDeployed driverKneeAirbagDeployed:(SDLVehicleDataEventStatus)driverKneeAirbagDeployed passengerSideAirbagDeployed:(SDLVehicleDataEventStatus)passengerSideAirbagDeployed passengerKneeAirbagDeployed:(SDLVehicleDataEventStatus)passengerKneeAirbagDeployed {
self = [self init];
if (!self) {
return nil;
}
self.driverAirbagDeployed = driverAirbagDeployed;
self.driverSideAirbagDeployed = driverSideAirbagDeployed;
self.driverCurtainAirbagDeployed = driverCurtainAirbagDeployed;
self.passengerAirbagDeployed = passengerAirbagDeployed;
self.passengerCurtainAirbagDeployed = passengerCurtainAirbagDeployed;
self.driverKneeAirbagDeployed = driverKneeAirbagDeployed;
self.passengerSideAirbagDeployed = passengerSideAirbagDeployed;
self.passengerKneeAirbagDeployed = passengerKneeAirbagDeployed;
return self;
}

- (void)setDriverAirbagDeployed:(SDLVehicleDataEventStatus)driverAirbagDeployed {
[self.store sdl_setObject:driverAirbagDeployed forName:SDLRPCParameterNameDriverAirbagDeployed];
}
Expand Down
55 changes: 49 additions & 6 deletions SmartDeviceLink/public/SDLAlert.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,34 @@
// SDLAlert.h
//

/*
* Copyright (c) 2020, SmartDeviceLink Consortium, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following
* disclaimer in the documentation and/or other materials provided with the
* distribution.
*
* Neither the name of the SmartDeviceLink Consortium Inc. nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/

#import "SDLRPCRequest.h"

Expand All @@ -19,6 +47,21 @@ NS_ASSUME_NONNULL_BEGIN
*/
@interface SDLAlert : SDLRPCRequest

/**
* @param alertText1 - alertText1
* @param alertText2 - alertText2
* @param alertText3 - alertText3
* @param ttsChunks - ttsChunks
* @param duration - duration
* @param playTone - playTone
* @param progressIndicator - progressIndicator
* @param softButtons - softButtons
* @param alertIcon - alertIcon
* @param cancelID - cancelID
* @return A SDLAlert object
*/
- (instancetype)initWithAlertText1:(nullable NSString *)alertText1 alertText2:(nullable NSString *)alertText2 alertText3:(nullable NSString *)alertText3 ttsChunks:(nullable NSArray<SDLTTSChunk *> *)ttsChunks duration:(nullable NSNumber<SDLUInt> *)duration playTone:(nullable NSNumber<SDLBool> *)playTone progressIndicator:(nullable NSNumber<SDLBool> *)progressIndicator softButtons:(nullable NSArray<SDLSoftButton *> *)softButtons alertIcon:(nullable SDLImage *)alertIcon cancelID:(nullable NSNumber<SDLInt> *)cancelID;

/**
Convenience init for creating a modal view with text, buttons, and optional sound cues.

Expand All @@ -30,7 +73,7 @@ NS_ASSUME_NONNULL_BEGIN
@param icon Image to be displayed in the alert
@return An SDLAlert object
*/
- (instancetype)initWithAlertText:(nullable NSString *)alertText softButtons:(nullable NSArray<SDLSoftButton *> *)softButtons playTone:(BOOL)playTone ttsChunks:(nullable NSArray<SDLTTSChunk *> *)ttsChunks alertIcon:(nullable SDLImage *)icon cancelID:(UInt32)cancelID;
- (instancetype)initWithAlertText:(nullable NSString *)alertText softButtons:(nullable NSArray<SDLSoftButton *> *)softButtons playTone:(BOOL)playTone ttsChunks:(nullable NSArray<SDLTTSChunk *> *)ttsChunks alertIcon:(nullable SDLImage *)icon cancelID:(UInt32)cancelID __deprecated_msg("Use initWithAlertText1:alertText2:alertText3:ttsChunks:duration:playTone:progressIndicator:softButtons:alertIcon:cancelID: instead");

/**
Convenience init for creating a sound-only alert.
Expand All @@ -39,7 +82,7 @@ NS_ASSUME_NONNULL_BEGIN
@param playTone Whether the alert tone should be played before the TTS is spoken
@return An SDLAlert object
*/
- (instancetype)initWithTTSChunks:(nullable NSArray<SDLTTSChunk *> *)ttsChunks playTone:(BOOL)playTone;
- (instancetype)initWithTTSChunks:(nullable NSArray<SDLTTSChunk *> *)ttsChunks playTone:(BOOL)playTone __deprecated_msg("Use initWithAlertText1:alertText2:alertText3:ttsChunks:duration:playTone:progressIndicator:softButtons:alertIcon:cancelID: instead");

/**
Convenience init for setting all alert parameters.
Expand All @@ -56,7 +99,7 @@ NS_ASSUME_NONNULL_BEGIN
@param icon Image to be displayed in the alert
@return An SDLAlert object
*/
- (instancetype)initWithAlertText1:(nullable NSString *)alertText1 alertText2:(nullable NSString *)alertText2 alertText3:(nullable NSString *)alertText3 softButtons:(nullable NSArray<SDLSoftButton *> *)softButtons playTone:(BOOL)playTone ttsChunks:(nullable NSArray<SDLTTSChunk *> *)ttsChunks duration:(UInt16)duration progressIndicator:(BOOL)progressIndicator alertIcon:(nullable SDLImage *)icon cancelID:(UInt32)cancelID;
- (instancetype)initWithAlertText1:(nullable NSString *)alertText1 alertText2:(nullable NSString *)alertText2 alertText3:(nullable NSString *)alertText3 softButtons:(nullable NSArray<SDLSoftButton *> *)softButtons playTone:(BOOL)playTone ttsChunks:(nullable NSArray<SDLTTSChunk *> *)ttsChunks duration:(UInt16)duration progressIndicator:(BOOL)progressIndicator alertIcon:(nullable SDLImage *)icon cancelID:(UInt32)cancelID __deprecated_msg("Use initWithAlertText1:alertText2:alertText3:ttsChunks:duration:playTone:progressIndicator:softButtons:alertIcon:cancelID: instead");

/**
The first line of the alert text field.
Expand Down
Loading