Table of Contents

Class AndroidInterop.Callbacks

Handles callbacks from the native interface.

public sealed class AndroidInterop.Callbacks : AndroidJavaProxy
Inheritance
object
AndroidInterop.Callbacks

Constructors

Callbacks()

public Callbacks()

Exceptions

PlatformNotSupportedException

Thrown if this constructor is called on a runtime other than Android.

Events

OnTargetChosen

Called when the user has chosen a target to share to, along with the event ID.

public event Action<int>? OnTargetChosen

Event Type

Action<int>

Remarks

This callback indicates that a target application was selected. It does not guarantee that the shared content was successfully received or processed by the target application.

This callback is invoked from an Android BroadcastReceiver. Do not use Unity APIs unless switching back to the main thread.

This callback may not be invoked for all share targets. For example, it is not triggered by "Copy to clipboard" on Meta Quest.