Table of Contents

Class MediaProjection

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

Constructors

MediaProjection(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 MediaProjection(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

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

Methods

CreateVirtualDisplay(String, int, int, int, int, Surface, Callback, Handler)

public VirtualDisplay CreateVirtualDisplay(String arg0, int arg1, int arg2, int arg3, int arg4, Surface arg5, VirtualDisplay.Callback arg6, Handler arg7)

Parameters

arg0 String

String

arg1 int

int

arg2 int

int

arg3 int

int

arg4 int

int

arg5 Surface

Surface

arg6 VirtualDisplay.Callback

VirtualDisplay.Callback

arg7 Handler

Handler

Returns

VirtualDisplay

VirtualDisplay

RegisterCallback(Callback, Handler)

public void RegisterCallback(MediaProjection.Callback arg0, Handler arg1)

Parameters

arg0 MediaProjection.Callback

MediaProjection.Callback

arg1 Handler

Handler

Stop()

public void Stop()

UnregisterCallback(Callback)

public void UnregisterCallback(MediaProjection.Callback arg0)

Parameters

arg0 MediaProjection.Callback

MediaProjection.Callback