Język

ColorValueMarshaler Class

Definition

Generates expressions that convert between color values and packed 32-bit integers.

public class ColorValueMarshaler : Java.Interop.JniValueMarshaler<Android.Graphics.Color>
type ColorValueMarshaler = class
    inherit JniValueMarshaler<Color>
Inheritance

Remarks

The expression conversion methods are implemented. Object-reference conversion, argument-state creation, and argument-state cleanup throw NotImplementedException.

Constructors

Name Description
ColorValueMarshaler()

Creates a marshaler for expression-based color conversions.

Properties

Name Description
IsJniValueType

Gets whether the marshaler uses a primitive JNI value representation.

(Inherited from JniValueMarshaler)
MarshalType

Gets the integer type used by generated color conversions.

Methods

Name Description
CreateArgumentState(Object, ParameterAttributes)

Casts an object to T and creates typed argument state.

(Inherited from JniValueMarshaler<T>)
CreateGenericArgumentState(T, ParameterAttributes)

Creates typed argument state through CreateGenericObjectReferenceArgumentState.

(Inherited from JniValueMarshaler<T>)
CreateGenericObjectReferenceArgumentState(Color, ParameterAttributes)

Throws because object-reference argument-state creation is not implemented.

CreateGenericObjectReferenceArgumentState(T, ParameterAttributes)

Creates object-reference argument state for a typed value.

(Inherited from JniValueMarshaler<T>)
CreateGenericValue(JniObjectReference, JniObjectReferenceOptions, Type)

Throws because conversion from a Java object reference is not implemented.

CreateObjectReferenceArgumentState(Object, ParameterAttributes)

Casts an object to T and creates typed object-reference argument state.

(Inherited from JniValueMarshaler<T>)
CreateParameterFromManagedExpression(JniValueMarshalerContext, ParameterExpression, ParameterAttributes)

Builds an expression that reads the packed integer from a color parameter.

CreateParameterToManagedExpression(JniValueMarshalerContext, ParameterExpression, ParameterAttributes, Type)

Builds an expression that constructs a color from an integer parameter.

CreateReturnValueFromManagedExpression(JniValueMarshalerContext, ParameterExpression)

Builds the packed-integer expression for a managed color return value.

CreateValue(JniObjectReference, JniObjectReferenceOptions, Type)

Converts a JNI reference through the typed conversion implementation.

(Inherited from JniValueMarshaler<T>)
DestroyArgumentState(Object, JniValueMarshalerState, ParameterAttributes)

Casts the original value to T and invokes typed state cleanup.

(Inherited from JniValueMarshaler<T>)
DestroyGenericArgumentState(Color, JniValueMarshalerState, ParameterAttributes)

Throws because argument-state cleanup is not implemented.

DestroyGenericArgumentState(T, JniValueMarshalerState, ParameterAttributes)

Completes synchronization and cleanup for a typed argument.

(Inherited from JniValueMarshaler<T>)
ReturnObjectReferenceToJni(JniValueMarshalerContext, String, Expression)

Adds an expression that creates and transfers a local JNI return reference.

(Inherited from JniValueMarshaler)

Applies to