Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLWeatherAlert Class Reference

Section Contents

Overview

Undocumented

-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 (readwrite, strong, nonatomic, nullable) NSString *title;

Swift

var title: String? { get set }

summary

A summary for the alert.

String, Optional

Objective-C

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

Swift

var summary: String? { get set }

expires

The date the alert expires.

SDLDateTime, Optional

Objective-C

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

Swift

var expires: SDLDateTime? { get set }

regions

Regions affected.

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

Objective-C

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

Swift

var regions: [String]? { get set }

severity

Severity of the weather alert.

String, Optional

Objective-C

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

Swift

var severity: String? { get set }

timeIssued

The date the alert was issued.

SDLDateTime, Optional

Objective-C

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

Swift

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