Interface DeviceEngagementCallback
-
- All Implemented Interfaces:
-
androidx.activity.result.ActivityResultCallback
public interface DeviceEngagementCallback implements ActivityResultCallback<O>
The interface implemented when DeviceEngagement is needed.public class SomeActivity extends androidx.appcompat.app.AppCompatActivity implements DeviceEngagementCallback { @Override public void onEngage(@NonNull Received<EngagementReceived> engagementReceived) { engagementReceived.run( failure -> { // handle failed device engagement }, success -> { DeviceEngagement deviceEngagement = success.getDeviceEngagement(); Handover handover = success.getHandover(); // use deviceEngagement and handover to send request via a Transfer implementation }); } }
-
-
Method Summary
Modifier and Type Method Description abstract void
onEngage(@NonNull() Received<EngagementReceived> engagementReceived)
On engage. void
onActivityResult(Received<EngagementReceived> result)
-
-
Method Detail
-
onEngage
abstract void onEngage(@NonNull() Received<EngagementReceived> engagementReceived)
On engage.
- Parameters:
engagementReceived
- the engagement received
-
onActivityResult
void onActivityResult(Received<EngagementReceived> result)
-
-
-
-