ColorValueMarshaler Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
| CreateGenericArgumentState(T, ParameterAttributes) |
Creates typed argument state. The base implementation delegates to |
| 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 |
| 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 to a managed value. The generic base implementation calls |
| DestroyArgumentState(Object, JniValueMarshalerState, ParameterAttributes) |
Cleans up argument state. The generic base implementation casts the value to |
| 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 prepares a JNI return handle. (Inherited from JniValueMarshaler) |