How to use smart lock API in my application to unlock pattern mode?
<p>I am using Android 5.0. The version provides the SmartLock function which allows unlocking the password/pattern by connecting with a trusted device. I have a bluetooth low energy (BLE) device which registered as trusted device. I want to use the BLE to unlock (pattern mode) the phone. It will unlock the phone when the BLE and phone are connected and data is available by the event</p>

<pre><code>if (BluetoothLeService.ACTION_DATA_AVAILABLE.equals(action)) 
// Calling unlock by the SmartLock API
</code></pre>

<p>If anyone who worked with SmartLock, please give me some guidance to do it? I did not find any SmartLock API to do it. 
<a href="https://i.stack.imgur.com/rbBZE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rbBZE.jpg" alt="enter image description here"></a></p>