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
SDLWeatherServiceManifest

SDLWeatherServiceManifest Class Reference

Section Contents

Overview

A weather service manifest.

-initWithCurrentForecastSupported:maxMultidayForecastAmount:maxHourlyForecastAmount:maxMinutelyForecastAmount:weatherForLocationSupported:

Convenience init for all parameters.

Objective-C

- (nonnull instancetype)
    initWithCurrentForecastSupported:(BOOL)currentForecastSupported
           maxMultidayForecastAmount:(UInt32)maxMultidayForecastAmount
             maxHourlyForecastAmount:(UInt32)maxHourlyForecastAmount
           maxMinutelyForecastAmount:(UInt32)maxMinutelyForecastAmount
         weatherForLocationSupported:(BOOL)weatherForLocationSupported;

Swift

init(currentForecastSupported: Bool, maxMultidayForecastAmount: UInt32, maxHourlyForecastAmount: UInt32, maxMinutelyForecastAmount: UInt32, weatherForLocationSupported: Bool)

Parameters

currentForecastSupported

Whether or not the current forecast is supported.

maxMultidayForecastAmount

The maximum number of day-by-day forecasts.

maxHourlyForecastAmount

The maximum number of hour-by-hour forecasts.

maxMinutelyForecastAmount

The maximum number of minute-by-minute forecasts.

weatherForLocationSupported

Whether or not the weather for location is supported.

Return Value

A SDLWeatherServiceManifest object

currentForecastSupported

Whether or not the current forecast is supported.

Boolean, Optional

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *currentForecastSupported;

Swift

var currentForecastSupported: (NSNumber & SDLBool)? { get set }

maxMultidayForecastAmount

The maximum number of day-by-day forecasts.

Integer, Optional

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLInt> *maxMultidayForecastAmount;

Swift

var maxMultidayForecastAmount: (NSNumber & SDLInt)? { get set }

maxHourlyForecastAmount

The maximum number of hour-by-hour forecasts.

Integer, Optional

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLInt> *maxHourlyForecastAmount;

Swift

var maxHourlyForecastAmount: (NSNumber & SDLInt)? { get set }

maxMinutelyForecastAmount

The maximum number of minute-by-minute forecasts.

Integer, Optional

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLInt> *maxMinutelyForecastAmount;

Swift

var maxMinutelyForecastAmount: (NSNumber & SDLInt)? { get set }

weatherForLocationSupported

Whether or not the weather for location is supported.

Boolean, Optional

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *weatherForLocationSupported;

Swift

var weatherForLocationSupported: (NSNumber & SDLBool)? { get set }
View on GitHub.com
Previous Section Next Section