public interface

AmbientModeSupport.AmbientCallbackProvider

 androidx.wear.ambient.AmbientModeSupport.AmbientCallbackProvider

Overview

Interface for any that wishes to implement Ambient Mode. Use the AmbientModeSupport.AmbientCallbackProvider.getAmbientCallback() method to return an AmbientModeSupport.AmbientCallback which can be used to bind the AmbientModeSupport to the instantiation of this interface.

return new AmbientModeSupport.AmbientCallback() {
     public void onEnterAmbient(Bundle ambientDetails) {...}
     public void onExitAmbient(Bundle ambientDetails) {...}
  }
 

Summary

Methods
public AmbientModeSupport.AmbientCallbackgetAmbientCallback()

Methods

public AmbientModeSupport.AmbientCallback getAmbientCallback()

Returns:

the AmbientModeSupport.AmbientCallback to be used by this class to communicate with the entity interested in ambient events.