Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLTouchManagerDelegate Protocol Reference

Section Contents

Overview

Undocumented

-touchManager:didReceiveSingleTapForView:atPoint:

A single tap was received

Objective-C

- (void)touchManager:(nonnull SDLTouchManager *)manager
    didReceiveSingleTapForView:(UIView *_Nullable)view
                       atPoint:(CGPoint)point;

Swift

optional func touchManager(_ manager: SDLTouchManager, didReceiveSingleTapFor view: UIView?, at point: CGPoint)

Parameters

manager

The SDLTouchManager issuing the callback

view

The view under the touch if it could be determined

point

The point at which the touch occurred in the head unit’s coordinate system

-touchManager:didReceiveDoubleTapForView:atPoint:

A double tap was received

Objective-C

- (void)touchManager:(nonnull SDLTouchManager *)manager
    didReceiveDoubleTapForView:(UIView *_Nullable)view
                       atPoint:(CGPoint)point;

Swift

optional func touchManager(_ manager: SDLTouchManager, didReceiveDoubleTapFor view: UIView?, at point: CGPoint)

Parameters

manager

The SDLTouchManager issuing the callback

view

The view under the touch if it could be determined

point

Location of the double tap in the head unit’s coordinate system. This is the average of the first and second tap.

-touchManager:panningDidStartInView:atPoint:

Panning started

Objective-C

- (void)touchManager:(nonnull SDLTouchManager *)manager
    panningDidStartInView:(UIView *_Nullable)view
                  atPoint:(CGPoint)point;

Swift

optional func touchManager(_ manager: SDLTouchManager, panningDidStartIn view: UIView?, at point: CGPoint)

Parameters

manager

The SDLTouchManager issuing the callback

view

The view under where the panning started if it could be determined

point

Location of the panning start point in the head unit’s coordinate system.

-touchManager:didReceivePanningFromPoint:toPoint:

Panning moved between points

Objective-C

- (void)touchManager:(nonnull SDLTouchManager *)manager
    didReceivePanningFromPoint:(CGPoint)fromPoint
                       toPoint:(CGPoint)toPoint;

Swift

optional func touchManager(_ manager: SDLTouchManager, didReceivePanningFrom fromPoint: CGPoint, to toPoint: CGPoint)

Parameters

manager

The SDLTouchManager issuing the callback

fromPoint

Location of the panning’s previous point in the head unit’s coordinate system

toPoint

Location of the panning’s new point in the head unit’s coordinate system

-touchManager:panningDidEndInView:atPoint:

Panning ended

Objective-C

- (void)touchManager:(nonnull SDLTouchManager *)manager
    panningDidEndInView:(UIView *_Nullable)view
                atPoint:(CGPoint)point;

Swift

optional func touchManager(_ manager: SDLTouchManager, panningDidEndIn view: UIView?, at point: CGPoint)

Parameters

manager

The SDLTouchManager issuing the callback

view

The view under where the panning ended if it could be determined

point

Location of the panning’s end point in the head unit’s coordinate system

-touchManager:panningCanceledAtPoint:

Panning canceled

Objective-C

- (void)touchManager:(nonnull SDLTouchManager *)manager
    panningCanceledAtPoint:(CGPoint)point;

Swift

optional func touchManager(_ manager: SDLTouchManager, panningCanceledAt point: CGPoint)

Parameters

manager

The SDLTouchManager issuing the callback

point

Location of the panning’s end point in the head unit’s coordinate system

-touchManager:pinchDidStartInView:atCenterPoint:

Pinch did start

Objective-C

- (void)touchManager:(nonnull SDLTouchManager *)manager
    pinchDidStartInView:(UIView *_Nullable)view
          atCenterPoint:(CGPoint)point;

Swift

optional func touchManager(_ manager: SDLTouchManager, pinchDidStartIn view: UIView?, atCenter point: CGPoint)

Parameters

manager

The SDLTouchManager issuing the callback

view

The view under the center of the pinch start

point

Center point of the pinch in the head unit’s coordinate system

-touchManager:didReceivePinchAtCenterPoint:withScale:

@abstract Pinch did move.

Objective-C

- (void)touchManager:(nonnull SDLTouchManager *)manager
    didReceivePinchAtCenterPoint:(CGPoint)point
                       withScale:(CGFloat)scale;

Swift

optional func touchManager(_ manager: SDLTouchManager, didReceivePinchAtCenter point: CGPoint, withScale scale: CGFloat)

Parameters

manager

Current initalized SDLTouchManager issuing the callback.

point

Center point of the pinch in the head unit’s coordinate system.

scale

Scale relative to the distance between touch points.

-touchManager:didReceivePinchInView:atCenterPoint:withScale:

Pinch moved and changed scale

Objective-C

- (void)touchManager:(nonnull SDLTouchManager *)manager
    didReceivePinchInView:(UIView *_Nullable)view
            atCenterPoint:(CGPoint)point
                withScale:(CGFloat)scale;

Swift

optional func touchManager(_ manager: SDLTouchManager, didReceivePinchIn view: UIView?, atCenter point: CGPoint, withScale scale: CGFloat)

Parameters

manager

The SDLTouchManager issuing the callback

view

The view under the center of the pinch

point

Center point of the pinch in the head unit’s coordinate system

scale

Scale relative to the distance between touch points

-touchManager:pinchDidEndInView:atCenterPoint:

Pinch did end

Objective-C

- (void)touchManager:(nonnull SDLTouchManager *)manager
    pinchDidEndInView:(UIView *_Nullable)view
        atCenterPoint:(CGPoint)point;

Swift

optional func touchManager(_ manager: SDLTouchManager, pinchDidEndIn view: UIView?, atCenter point: CGPoint)

Parameters

manager

The SDLTouchManager issuing the callback

view

The view under the center of the pinch

point

Center point of the pinch in the head unit’s coordinate system

-touchManager:pinchCanceledAtCenterPoint:

Pinch canceled

Objective-C

- (void)touchManager:(nonnull SDLTouchManager *)manager
    pinchCanceledAtCenterPoint:(CGPoint)point;

Swift

optional func touchManager(_ manager: SDLTouchManager, pinchCanceledAtCenter point: CGPoint)

Parameters

manager

The SDLTouchManager issuing the callback

point

Center point of the pinch in the head unit’s coordinate system

View on GitHub.com
Previous Section Next Section