Table of Contents

Class CompanionDeviceManager

Namespace
Android.Companion
Assembly
MASES.Netdroid.dll
public class CompanionDeviceManager : JVMBridgeBase<CompanionDeviceManager>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
Inheritance
CompanionDeviceManager
Implements
Extension Methods

Constructors

CompanionDeviceManager(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public CompanionDeviceManager(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

EXTRA_ASSOCIATION

public static String EXTRA_ASSOCIATION { get; set; }

Property Value

String

EXTRA_DEVICE

[Obsolete("Deprecated in JVM")]
public static String EXTRA_DEVICE { get; set; }

Property Value

String

FLAG_CALL_METADATA

public static int FLAG_CALL_METADATA { get; set; }

Property Value

int

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

RESULT_CANCELED

public static int RESULT_CANCELED { get; set; }

Property Value

int

RESULT_DISCOVERY_TIMEOUT

public static int RESULT_DISCOVERY_TIMEOUT { get; set; }

Property Value

int

RESULT_INTERNAL_ERROR

public static int RESULT_INTERNAL_ERROR { get; set; }

Property Value

int

RESULT_OK

public static int RESULT_OK { get; set; }

Property Value

int

RESULT_SECURITY_ERROR

public static int RESULT_SECURITY_ERROR { get; set; }

Property Value

int

RESULT_USER_REJECTED

public static int RESULT_USER_REJECTED { get; set; }

Property Value

int

Methods

Associate(AssociationRequest, Callback, Handler)

public void Associate(AssociationRequest arg0, CompanionDeviceManager.Callback arg1, Handler arg2)

Parameters

arg0 AssociationRequest

AssociationRequest

arg1 CompanionDeviceManager.Callback

CompanionDeviceManager.Callback

arg2 Handler

Handler

Associate(AssociationRequest, Executor, Callback)

public void Associate(AssociationRequest arg0, Executor arg1, CompanionDeviceManager.Callback arg2)

Parameters

arg0 AssociationRequest

AssociationRequest

arg1 Executor

Executor

arg2 CompanionDeviceManager.Callback

CompanionDeviceManager.Callback

AttachSystemDataTransport(int, InputStream, OutputStream)

public void AttachSystemDataTransport(int arg0, InputStream arg1, OutputStream arg2)

Parameters

arg0 int

int

arg1 InputStream

InputStream

arg2 OutputStream

OutputStream

Exceptions

DeviceNotAssociatedException

BuildAssociationCancellationIntent()

public IntentSender BuildAssociationCancellationIntent()

Returns

IntentSender

IntentSender

BuildPermissionTransferUserConsentIntent(int)

public IntentSender BuildPermissionTransferUserConsentIntent(int arg0)

Parameters

arg0 int

int

Returns

IntentSender

IntentSender

Exceptions

DeviceNotAssociatedException

DetachSystemDataTransport(int)

public void DetachSystemDataTransport(int arg0)

Parameters

arg0 int

int

Exceptions

DeviceNotAssociatedException

DisableSystemDataSyncForTypes(int, int)

public void DisableSystemDataSyncForTypes(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Disassociate(String)

[Obsolete("Deprecated in JVM")]
public void Disassociate(String arg0)

Parameters

arg0 String

String

Disassociate(int)

public void Disassociate(int arg0)

Parameters

arg0 int

int

EnableSystemDataSyncForTypes(int, int)

public void EnableSystemDataSyncForTypes(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

GetAssociations()

[Obsolete("Deprecated in JVM")]
public List<String> GetAssociations()

Returns

List<String>

List

GetMyAssociations()

public List<AssociationInfo> GetMyAssociations()

Returns

List<AssociationInfo>

List

HasNotificationAccess(ComponentName)

[Obsolete("Deprecated in JVM")]
public bool HasNotificationAccess(ComponentName arg0)

Parameters

arg0 ComponentName

ComponentName

Returns

bool

bool

IsPermissionTransferUserConsented(int)

public bool IsPermissionTransferUserConsented(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

RemoveBond(int)

public bool RemoveBond(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

RequestNotificationAccess(ComponentName)

public void RequestNotificationAccess(ComponentName arg0)

Parameters

arg0 ComponentName

ComponentName

SetDeviceId(int, DeviceId)

public void SetDeviceId(int arg0, DeviceId arg1)

Parameters

arg0 int

int

arg1 DeviceId

DeviceId

StartObservingDevicePresence(ObservingDevicePresenceRequest)

public void StartObservingDevicePresence(ObservingDevicePresenceRequest arg0)

Parameters

arg0 ObservingDevicePresenceRequest

ObservingDevicePresenceRequest

StartObservingDevicePresence(String)

[Obsolete("Deprecated in JVM")]
public void StartObservingDevicePresence(String arg0)

Parameters

arg0 String

String

Exceptions

DeviceNotAssociatedException

StartSystemDataTransfer(int, Executor, OutcomeReceiver<Void, CompanionException>)

public void StartSystemDataTransfer(int arg0, Executor arg1, OutcomeReceiver<Void, CompanionException> arg2)

Parameters

arg0 int

int

arg1 Executor

Executor

arg2 OutcomeReceiver<Void, CompanionException>

OutcomeReceiver

Exceptions

DeviceNotAssociatedException

StopObservingDevicePresence(ObservingDevicePresenceRequest)

public void StopObservingDevicePresence(ObservingDevicePresenceRequest arg0)

Parameters

arg0 ObservingDevicePresenceRequest

ObservingDevicePresenceRequest

StopObservingDevicePresence(String)

[Obsolete("Deprecated in JVM")]
public void StopObservingDevicePresence(String arg0)

Parameters

arg0 String

String

Exceptions

DeviceNotAssociatedException