Declared in UIApplication+TKCategory.h
UIApplication+TKCategory.m

Overview

Additional functionality for UIApplication.

Properties

canOpenUberApp

Returns true if the app can open Uber.

@property (nonatomic, readonly) BOOL canOpenUberApp

Declared In

UIApplication+TKCategory.h

Instance Methods

openAppleMapURLWithCoordinate:query:

Opens Apple maps app to the given coordinates and query.

- (void)openAppleMapURLWithCoordinate:(CLLocationCoordinate2D)coordinates query:(NSString *)query

Parameters

coordinates

The coordinates to open to.

query

The search query.

Declared In

UIApplication+TKCategory.h

openGoogleMapURLWithCoordinate:query:

Opens Google maps app (or URL) to the given coordinates and query.

- (void)openGoogleMapURLWithCoordinate:(CLLocationCoordinate2D)coordinates query:(NSString *)query

Parameters

coordinates

The coordinates to open to.

query

The search query.

Declared In

UIApplication+TKCategory.h

openUberAppWithClient:product:pickup:pickupName:pickupAddress:dropoff:dropoffName:dropoffAddress:

Opens the Uber app with the given callbacks.

- (void)openUberAppWithClient:(NSString *)clientID product:(NSString *)productID pickup:(CLLocationCoordinate2D)pickupCoordinate pickupName:(NSString *)pickupName pickupAddress:(NSString *)pickupAddress dropoff:(CLLocationCoordinate2D)dropoff dropoffName:(NSString *)dropoffName dropoffAddress:(NSString *)dropoffAddress

Parameters

clientID

The clientID given by Uber to identify the app that launched the app.

productID

A specific product id for things like UberTaxi, UberRush.

pickupCoordinate

The latitude and longitude of the pickup.

pickupName

Pickup location name.

pickupAddress

The full address of the pickup location.

dropoff

The latitude and longitude of the dropoff.

dropoffName

The name of the location to dropoff.

dropoffAddress

The full address of the dropoff location.

Declared In

UIApplication+TKCategory.h