Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
iOS Documentation
SDLWeatherAlert

SDLWeatherAlert Class Reference

Section Contents

Overview

Contains information about a weather alert

@since RPC 5.1

-initWithTitle:summary:expires:regions:severity:timeIssued:

Convenience init for all parameters

Objective-C

- (nonnull instancetype)initWithTitle:(nullable NSString *)title
                              summary:(nullable NSString *)summary
                              expires:(nullable SDLDateTime *)expires
                              regions:(nullable NSArray<NSString *> *)regions
                             severity:(nullable NSString *)severity
                           timeIssued:(nullable SDLDateTime *)timeIssued;

Swift

init(title: String?, summary: String?, expires: SDLDateTime?, regions: [String]?, severity: String?, timeIssued: SDLDateTime?)

Parameters

title

The title of the alert

summary

A summary for the alert

expires

The date the alert expires

regions

Regions affected

severity

Severity

timeIssued

The date the alert was issued

Return Value

A SDLWeatherAlert alert

title

The title of the alert.

String, Optional

Objective-C

@property (nonatomic, strong, nullable) NSString *title;

Swift

var title: String? { get set }

summary

A summary for the alert.

String, Optional

Objective-C

@property (nonatomic, strong, nullable) NSString *summary;

Swift

var summary: String? { get set }

expires

The date the alert expires.

SDLDateTime, Optional

Objective-C

@property (nonatomic, strong, nullable) SDLDateTime *expires;

Swift

var expires: SDLDateTime? { get set }

regions

Regions affected.

Array of Strings, Optional, minsize=“1” maxsize=“99”

Objective-C

@property (nonatomic, strong, nullable) NSArray<NSString *> *regions;

Swift

var regions: [String]? { get set }

severity

Severity of the weather alert.

String, Optional

Objective-C

@property (nonatomic, strong, nullable) NSString *severity;

Swift

var severity: String? { get set }

timeIssued

The date the alert was issued.

SDLDateTime, Optional

Objective-C

@property (nonatomic, strong, nullable) SDLDateTime *timeIssued;

Swift

var timeIssued: SDLDateTime? { get set }
View on GitHub.com
Previous Section Next Section