Warning

This feature is available in the Full MapKit SDK version

MMKSearchAvailability

@interface MMKSearchAvailability : NSObject

A single value of availability information.

Allows to describe business schedule for a group of days. For example, an organization open on weekdays from 9 AM to 6 PM with a lunch break from 1 PM to 2 PM can be described as a single Availability with days equal to DayGroup::Weekdays and two time ranges (9:00-13:00, 14:00-18:00). More complicated schedules will require multiple Availabilities.

Summary

Class methods

+ (nonnull MMKSearchAvailability *)availabilityWithDays:( MMKSearchDayGroup)days
                                             timeRanges:(nonnull NSArray<MMKSearchTimeRange *> *)timeRanges;

Properties

@property (nonatomic, readonly) MMKSearchDayGroup days;
Days where time ranges are applicable

@property (nonatomic, readonly, nonnull)
    NSArray<MMKSearchTimeRange *> *timeRanges;

Ranges for open hours

Class methods

availabilityWithDays:timeRanges:

+ (nonnull MMKSearchAvailability *)availabilityWithDays:( MMKSearchDayGroup)days
                                             timeRanges:(nonnull NSArray<MMKSearchTimeRange *> *)timeRanges;


Properties

days

@property (nonatomic, readonly) MMKSearchDayGroup days;

Days where time ranges are applicable


timeRanges

@property (nonatomic, readonly, nonnull)
    NSArray<MMKSearchTimeRange *> *timeRanges;

Ranges for open hours