EKStructuredLocation Class Reference

Inherits from
Conforms to
Availability
Available in OS X v10.8 and later.
Companion guide
Declared in
EKStructuredLocation.h

Overview

The EKStructuredLocation class specifies a geofence that can be used to trigger the alarm of a calendar item. Use locationWithTitle: to create a new structured location, then set it to the structuredLocation property of an EKAlarm object.

Tasks

Creating Structured Locations

Accessing Structured Location Properties

Properties

geoLocation

The core location.

@property(nonatomic, retain) CLLocation *geoLocation;
Availability
  • Available in OS X v10.8 and later.
Declared In
EKStructuredLocation.h

radius

A minimum distance from the core location that would trigger the alarm or reminder.

@property(nonatomic) double radius;
Discussion

To use the default radius, set this property to 0.

Availability
  • Available in OS X v10.8 and later.
Declared In
EKStructuredLocation.h

title

The title of the location.

@property(nonatomic, retain) NSString *title;
Availability
  • Available in OS X v10.8 and later.
Declared In
EKStructuredLocation.h

Class Methods

locationWithTitle:

Creates a new structured location.

+ (EKStructuredLocation *)locationWithTitle:(NSString *)title;
Parameters
title

The title of the location.

Return Value

The structured location object.

Availability
  • Available in OS X v10.8 and later.
Declared In
EKStructuredLocation.h