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

Class HapticInterfaceManager

Hierarchy

java.lang.Object

Package
com.smartdevicelink.haptic

Overview

Created on 9/22/2017. Manages haptic data used to render focusable areas on the HU screen. App developers can over-ride the default logic used to find focusable Views by passing their own data to {@link #setHapticData(List)}

Constructors

HapticInterfaceManager( ISdl proxy )

public HapticInterfaceManager(ISdl proxy)

Parameters

proxy

Methods

setHapticData( java.util.List<com.smartdevicelink.proxy.rpc.HapticRect> hapticData )

Sets haptic data and sends update to the HU. To be used by app code instead of letting Presentation find the Views and automatically send to HU.

public void setHapticData(java.util.List<com.smartdevicelink.proxy.rpc.HapticRect> hapticData)

Parameters

hapticData
Rect data indicating "focusable" screen elements or areas

refreshHapticData( View root )

Sends haptic data found by searching for focusable and clickable Views in the view heirarchy to the HU. Should be called by Presentation's OnShowListener.

public void refreshHapticData(View root)

Parameters

root
the root or parent View

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section