Charmi Gheewala
Charmi Gheewala

Reputation: 828

How to fetch Show As value of an EkEvent type object?

I am fetching object of type EkEvent from event store, but I am not able to find Show As property for the event.
Note: We can set Show As = Free/Busy, while we create or edit event.

Thanks.

Upvotes: 0

Views: 99

Answers (1)

Charmi Gheewala
Charmi Gheewala

Reputation: 828

Got the answer, I am posting it here , it might be useful to someone.

[eventObj availability]; //returns the "Show As" property for event

typedef enum {
   EKEventAvailabilityNotSupported = -1,
   EKEventAvailabilityBusy = 0,
   EKEventAvailabilityFree,
   EKEventAvailabilityTentative,
   EKEventAvailabilityUnavailable
} EKEventAvailability;

Upvotes: 1

Related Questions