语言

Resource.Color 类

定义

提供平台颜色资源的标识符。

[Android.Runtime.Register("android/R$color", DoNotGenerateAcw=true)]
public sealed class Resource.Color : Java.Lang.Object
[<Android.Runtime.Register("android/R$color", DoNotGenerateAcw=true)>]
type Resource.Color = class
    inherit Object
继承
Resource.Color
特性

注解

Android 平台文档

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

构造函数

名称 说明
Resource.Color()

创建颜色资源标识符类的新实例。

字段

名称 说明
BackgroundDark

背景色资源,其基础平台 ARGB 值为 #FF000000,不透明。

BackgroundLight

背景色资源,其基平台 ARGB 值 #FFFFFFFF,不透明。

Black

颜色资源,其基平台 ARGB 值 #FF000000,不透明。

DarkerGray

其基平台值 #aaa 的灰色资源。

HoloBlueBright

蓝色的真亮 Holo 阴影

HoloBlueDark

深蓝色的 Holo 阴影

HoloBlueLight

浅蓝色的 Holo 阴影

HoloGreenDark

深色的 Holo 阴影绿色

HoloGreenLight

绿色的浅 Holo 阴影

HoloOrangeDark

橙色的深色 Holo 阴影

HoloOrangeLight

橙色的浅 Holo 阴影

HoloPurple

紫色的 Holo 阴影

HoloRedDark

深色的 Holo 阴影

HoloRedLight

浅色的 Holo 阴影

PrimaryTextDark

具有禁用、窗口焦点和反向交互状态条目的文本颜色状态列表。

PrimaryTextDarkNoDisable

文本颜色状态列表,具有所选或已激活状态的反转颜色列表,并且没有禁用状态规则。

PrimaryTextLight

具有禁用的前景色的文本颜色状态列表,并为其他声明状态bright_foreground_light。

PrimaryTextLightNoDisable

对每个声明状态使用bright_foreground_light且没有禁用状态规则的文本颜色状态列表。

SecondaryTextDark

默认情况下,使用dim_foreground_dark的文本颜色状态列表,并单独禁用、选择、按下和激活颜色。

SecondaryTextDarkNoDisable

默认情况下,使用dim_foreground_dark的文本颜色状态列表和所选或已激活状态的反转颜色,而不使用禁用状态规则。

SecondaryTextLight

默认情况下,使用dim_foreground_light的文本颜色状态列表,以及单独的已禁用和激活的颜色。

SecondaryTextLightNoDisable

默认情况下,使用dim_foreground_dark的文本颜色状态列表和所选或已激活状态的反转颜色,而不使用禁用状态规则。

SystemAccent10

标识名为 system_accent1_0 的平台颜色资源。

SystemAccent110

标识名为 system_accent1_10 的平台颜色资源。

SystemAccent1100

标识名为 system_accent1_100 的平台颜色资源。

SystemAccent11000

标识名为 system_accent1_1000 的平台颜色资源。

SystemAccent1200

标识名为 system_accent1_200 的平台颜色资源。

SystemAccent1300

标识名为 system_accent1_300 的平台颜色资源。

SystemAccent1400

标识名为 system_accent1_400 的平台颜色资源。

SystemAccent150

标识名为 system_accent1_50 的平台颜色资源。

SystemAccent1500

标识名为 system_accent1_500 的平台颜色资源。

SystemAccent1600

标识名为 system_accent1_600 的平台颜色资源。

SystemAccent1700

标识名为 system_accent1_700 的平台颜色资源。

SystemAccent1800

标识名为 system_accent1_800 的平台颜色资源。

SystemAccent1900

标识名为 system_accent1_900 的平台颜色资源。

SystemAccent20

标识名为 system_accent2_0 的平台颜色资源。

SystemAccent210

标识名为 system_accent2_10 的平台颜色资源。

SystemAccent2100

标识名为 system_accent2_100 的平台颜色资源。

SystemAccent21000

标识名为 system_accent2_1000 的平台颜色资源。

SystemAccent2200

标识名为 system_accent2_200 的平台颜色资源。

SystemAccent2300

标识名为 system_accent2_300 的平台颜色资源。

SystemAccent2400

标识名为 system_accent2_400 的平台颜色资源。

SystemAccent250

标识名为 system_accent2_50 的平台颜色资源。

SystemAccent2500

标识名为 system_accent2_500 的平台颜色资源。

SystemAccent2600

标识名为 system_accent2_600 的平台颜色资源。

SystemAccent2700

标识名为 system_accent2_700 的平台颜色资源。

SystemAccent2800

标识名为 system_accent2_800 的平台颜色资源。

SystemAccent2900

标识名为 system_accent2_900 的平台颜色资源。

SystemAccent30

标识名为 system_accent3_0 的平台颜色资源。

SystemAccent310

标识名为 system_accent3_10 的平台颜色资源。

SystemAccent3100

标识名为 system_accent3_100 的平台颜色资源。

SystemAccent31000

标识名为 system_accent3_1000 的平台颜色资源。

SystemAccent3200

标识名为 system_accent3_200 的平台颜色资源。

SystemAccent3300

标识名为 system_accent3_300 的平台颜色资源。

SystemAccent3400

标识名为 system_accent3_400 的平台颜色资源。

SystemAccent350

标识名为 system_accent3_50 的平台颜色资源。

SystemAccent3500

标识名为 system_accent3_500 的平台颜色资源。

SystemAccent3600

标识名为 system_accent3_600 的平台颜色资源。

SystemAccent3700

标识名为 system_accent3_700 的平台颜色资源。

SystemAccent3800

标识名为 system_accent3_800 的平台颜色资源。

SystemAccent3900

标识名为 system_accent3_900 的平台颜色资源。

SystemBackgroundDark

标识名为 system_background_dark 的平台颜色资源。

SystemBackgroundLight

标识名为 system_background_light 的平台颜色资源。

SystemControlActivatedDark

标识名为 system_control_activated_dark 的平台颜色资源。

SystemControlActivatedLight

标识名为 system_control_activated_light 的平台颜色资源。

SystemControlHighlightDark

标识名为 system_control_highlight_dark 的平台颜色资源。

SystemControlHighlightLight

标识名为 system_control_highlight_light 的平台颜色资源。

SystemControlNormalDark

标识名为 system_control_normal_dark 的平台颜色资源。

SystemControlNormalLight

标识名为 system_control_normal_light 的平台颜色资源。

SystemError0

标识名为 system_error_0 的平台颜色资源。

SystemError10

标识名为 system_error_10 的平台颜色资源。

SystemError100

标识名为 system_error_100 的平台颜色资源。

SystemError1000

标识名为 system_error_1000 的平台颜色资源。

SystemError200

标识名为 system_error_200 的平台颜色资源。

SystemError300

标识名为 system_error_300 的平台颜色资源。

SystemError400

标识名为 system_error_400 的平台颜色资源。

SystemError50

标识名为 system_error_50 的平台颜色资源。

SystemError500

标识名为 system_error_500 的平台颜色资源。

SystemError600

标识名为 system_error_600 的平台颜色资源。

SystemError700

标识名为 system_error_700 的平台颜色资源。

SystemError800

标识名为 system_error_800 的平台颜色资源。

SystemError900

标识名为 system_error_900 的平台颜色资源。

SystemErrorContainerDark

标识名为 system_error_container_dark 的平台颜色资源。

SystemErrorContainerLight

标识名为 system_error_container_light 的平台颜色资源。

SystemErrorDark

标识名为 system_error_dark 的平台颜色资源。

SystemErrorDimDark

仅磨损:高强调填充颜色指示深色模式下的错误或破坏性操作。

SystemErrorDimLight

仅磨损:高强调填充颜色指示浅色模式下的错误或破坏性操作。

SystemErrorLight

标识名为 system_error_light 的平台颜色资源。

SystemInverseOnSurfaceDark

反转组件(如深色模式下的小吃条)的文本/图标颜色。

SystemInverseOnSurfaceLight

反转组件(如浅色模式下的小吃条)的文本/图标颜色。

SystemInversePrimaryDark

反转组件(如深色模式下的小吃条)上的操作的文本/图标主题色。

SystemInversePrimaryLight

在浅色模式下对倒排组件(如小吃条)执行的操作的文本/图标主题色。

SystemInverseSurfaceDark

在深色模式下为倒排组件(如小吃条)填充颜色。

SystemInverseSurfaceLight

在浅色模式下为倒排组件(如小吃条)填充颜色。

SystemNeutral10

标识名为 system_neutral1_0 的平台颜色资源。

SystemNeutral110

标识名为 system_neutral1_10 的平台颜色资源。

SystemNeutral1100

标识名为 system_neutral1_100 的平台颜色资源。

SystemNeutral11000

标识名为 system_neutral1_1000 的平台颜色资源。

SystemNeutral1200

标识名为 system_neutral1_200 的平台颜色资源。

SystemNeutral1300

标识名为 system_neutral1_300 的平台颜色资源。

SystemNeutral1400

标识名为 system_neutral1_400 的平台颜色资源。

SystemNeutral150

标识名为 system_neutral1_50 的平台颜色资源。

SystemNeutral1500

标识名为 system_neutral1_500 的平台颜色资源。

SystemNeutral1600

标识名为 system_neutral1_600 的平台颜色资源。

SystemNeutral1700

标识名为 system_neutral1_700 的平台颜色资源。

SystemNeutral1800

标识名为 system_neutral1_800 的平台颜色资源。

SystemNeutral1900

标识名为 system_neutral1_900 的平台颜色资源。

SystemNeutral20

标识名为 system_neutral2_0 的平台颜色资源。

SystemNeutral210

标识名为 system_neutral2_10 的平台颜色资源。

SystemNeutral2100

标识名为 system_neutral2_100 的平台颜色资源。

SystemNeutral21000

标识名为 system_neutral2_1000 的平台颜色资源。

SystemNeutral2200

标识名为 system_neutral2_200 的平台颜色资源。

SystemNeutral2300

标识名为 system_neutral2_300 的平台颜色资源。

SystemNeutral2400

标识名为 system_neutral2_400 的平台颜色资源。

SystemNeutral250

标识名为 system_neutral2_50 的平台颜色资源。

SystemNeutral2500

标识名为 system_neutral2_500 的平台颜色资源。

SystemNeutral2600

标识名为 system_neutral2_600 的平台颜色资源。

SystemNeutral2700

标识名为 system_neutral2_700 的平台颜色资源。

SystemNeutral2800

标识名为 system_neutral2_800 的平台颜色资源。

SystemNeutral2900

标识名为 system_neutral2_900 的平台颜色资源。

SystemOnBackgroundDark

标识名为 system_on_background_dark 的平台颜色资源。

SystemOnBackgroundLight

标识名为 system_on_background_light 的平台颜色资源。

SystemOnErrorContainerDark

标识名为 system_on_error_container_dark 的平台颜色资源。

SystemOnErrorContainerLight

标识名为 system_on_error_container_light 的平台颜色资源。

SystemOnErrorDark

标识名为 system_on_error_dark 的平台颜色资源。

SystemOnErrorLight

标识名为 system_on_error_light 的平台颜色资源。

SystemOnPrimaryContainerDark

标识名为 system_on_primary_container_dark 的平台颜色资源。

SystemOnPrimaryContainerLight

标识名为 system_on_primary_container_light 的平台颜色资源。

SystemOnPrimaryDark

标识名为 system_on_primary_dark 的平台颜色资源。

SystemOnPrimaryFixed

标识名为 system_on_primary_fixed 的平台颜色资源。

SystemOnPrimaryFixedDark

在深色模式下针对主固定的更高强调文本/图标颜色。

SystemOnPrimaryFixedLight

针对浅色模式下主固定的更高强调文本/图标颜色。

SystemOnPrimaryFixedVariant

标识名为 system_on_primary_fixed_variant 的平台颜色资源。

SystemOnPrimaryFixedVariantDark

在深色模式下针对主固定的低强调文本/图标颜色。

SystemOnPrimaryFixedVariantLight

在浅色模式下针对主要固定的低强调文本/图标颜色。

SystemOnPrimaryLight

标识名为 system_on_primary_light 的平台颜色资源。

SystemOnSecondaryContainerDark

标识名为 system_on_secondary_container_dark 的平台颜色资源。

SystemOnSecondaryContainerLight

标识名为 system_on_secondary_container_light 的平台颜色资源。

SystemOnSecondaryDark

标识名为 system_on_secondary_dark 的平台颜色资源。

SystemOnSecondaryFixed

标识名为 system_on_secondary_fixed 的平台颜色资源。

SystemOnSecondaryFixedDark

在深色模式下针对辅助固定的更高强调文本/图标颜色。

SystemOnSecondaryFixedLight

在浅色模式下针对辅助固定的更高强调文本/图标颜色。

SystemOnSecondaryFixedVariant

标识名为 system_on_secondary_fixed_variant 的平台颜色资源。

SystemOnSecondaryFixedVariantDark

在深色模式下针对辅助固定的下强调文字/图标颜色。

SystemOnSecondaryFixedVariantLight

在浅色模式下针对辅助固定的低强调文本/图标颜色。

SystemOnSecondaryLight

标识名为 system_on_secondary_light 的平台颜色资源。

SystemOnSurfaceDark

标识名为 system_on_surface_dark 的平台颜色资源。

SystemOnSurfaceDisabled

标识名为 system_on_surface_disabled 的平台颜色资源。

SystemOnSurfaceLight

标识名为 system_on_surface_light 的平台颜色资源。

SystemOnSurfaceVariantDark

标识名为 system_on_surface_variant_dark 的平台颜色资源。

SystemOnSurfaceVariantLight

标识名为 system_on_surface_variant_light 的平台颜色资源。

SystemOnTertiaryContainerDark

标识名为 system_on_tertiary_container_dark 的平台颜色资源。

SystemOnTertiaryContainerLight

标识名为 system_on_tertiary_container_light 的平台颜色资源。

SystemOnTertiaryDark

标识名为 system_on_tertiary_dark 的平台颜色资源。

SystemOnTertiaryFixed

标识名为 system_on_tertiary_fixed 的平台颜色资源。

SystemOnTertiaryFixedDark

在深色模式下针对第三级固定的更高强调文字/图标颜色。

SystemOnTertiaryFixedLight

在浅色模式下针对第三级固定的更高强调文字/图标颜色。

SystemOnTertiaryFixedVariant

标识名为 system_on_tertiary_fixed_variant 的平台颜色资源。

SystemOnTertiaryFixedVariantDark

在深色模式下针对第三级固定的低强调文字/图标颜色。

SystemOnTertiaryFixedVariantLight

浅色模式下针对第三级固定的低强调文字/图标颜色。

SystemOnTertiaryLight

标识名为 system_on_tertiary_light 的平台颜色资源。

SystemOutlineDark

标识名为 system_outline_dark 的平台颜色资源。

SystemOutlineDisabled

标识名为 system_outline_disabled 的平台颜色资源。

SystemOutlineLight

标识名为 system_outline_light 的平台颜色资源。

SystemOutlineVariantDark

标识名为 system_outline_variant_dark 的平台颜色资源。

SystemOutlineVariantLight

标识名为 system_outline_variant_light 的平台颜色资源。

SystemPaletteKeyColorErrorDark

其色调和色度用于在深色模式下创建错误调色板和相关标记的颜色。

SystemPaletteKeyColorErrorLight

其色调和色度用于在浅色模式下创建错误调色板和相关标记的颜色。

SystemPaletteKeyColorNeutralDark

标识名为 system_palette_key_color_neutral_dark 的平台颜色资源。

SystemPaletteKeyColorNeutralLight

标识名为 system_palette_key_color_neutral_light 的平台颜色资源。

SystemPaletteKeyColorNeutralVariantDark

标识名为 system_palette_key_color_neutral_variant_dark 的平台颜色资源。

SystemPaletteKeyColorNeutralVariantLight

标识名为 system_palette_key_color_neutral_variant_light 的平台颜色资源。

SystemPaletteKeyColorPrimaryDark

标识名为 system_palette_key_color_primary_dark 的平台颜色资源。

SystemPaletteKeyColorPrimaryLight

标识名为 system_palette_key_color_primary_light 的平台颜色资源。

SystemPaletteKeyColorSecondaryDark

标识名为 system_palette_key_color_secondary_dark 的平台颜色资源。

SystemPaletteKeyColorSecondaryLight

标识名为 system_palette_key_color_secondary_light 的平台颜色资源。

SystemPaletteKeyColorTertiaryDark

标识名为 system_palette_key_color_tertiary_dark 的平台颜色资源。

SystemPaletteKeyColorTertiaryLight

标识名为 system_palette_key_color_tertiary_light 的平台颜色资源。

SystemPrimaryContainerDark

标识名为 system_primary_container_dark 的平台颜色资源。

SystemPrimaryContainerLight

标识名为 system_primary_container_light 的平台颜色资源。

SystemPrimaryDark

标识名为 system_primary_dark 的平台颜色资源。

SystemPrimaryDimDark

仅穿:深色模式下主要操作的填充颜色。

SystemPrimaryDimLight

仅穿:浅色模式下主要操作的填充颜色。

SystemPrimaryFixed

标识名为 system_primary_fixed 的平台颜色资源。

SystemPrimaryFixedDark

在深色模式下,在浅色模式和深色模式中保持明亮的主要操作的填充颜色。

SystemPrimaryFixedDim

标识名为 system_primary_fixed_dim 的平台颜色资源。

SystemPrimaryFixedDimDark

深色模式中浅色和深色模式的主要操作的深色填充颜色。

SystemPrimaryFixedDimLight

在浅色模式下,主要操作的深色填充颜色在浅色模式和深色模式中保持亮色。

SystemPrimaryFixedLight

在浅色模式下,在浅色模式和深色模式下保持亮亮的主要操作的填充颜色。

SystemPrimaryLight

标识名为 system_primary_light 的平台颜色资源。

SystemScrimDark

半透明覆盖的颜色,使模式窗口或对话在深色模式下的背景变暗。

SystemScrimLight

半透明覆盖的颜色,使模式窗口或对话在浅色模式下的背景变暗。

SystemSecondaryContainerDark

标识名为 system_secondary_container_dark 的平台颜色资源。

SystemSecondaryContainerLight

标识名为 system_secondary_container_light 的平台颜色资源。

SystemSecondaryDark

标识名为 system_secondary_dark 的平台颜色资源。

SystemSecondaryDimDark

仅穿:深色模式下支持操作的填充颜色。

SystemSecondaryDimLight

仅穿:浅色模式下支持操作的填充颜色。

SystemSecondaryFixed

标识名为 system_secondary_fixed 的平台颜色资源。

SystemSecondaryFixedDark

填充颜色,用于支持在深色模式下的浅色模式和深色模式中保持亮亮的操作。

SystemSecondaryFixedDim

标识名为 system_secondary_fixed_dim 的平台颜色资源。

SystemSecondaryFixedDimDark

深色填充颜色,用于支持在深色模式下在浅色模式和深色模式下保持亮的操作。

SystemSecondaryFixedDimLight

深色填充颜色,用于支持在浅色模式下保持亮亮和深色模式的操作。

SystemSecondaryFixedLight

用于支持在浅色模式和深色模式下保持亮亮的操作的填充颜色。

SystemSecondaryLight

标识名为 system_secondary_light 的平台颜色资源。

SystemShadowDark

用于在深色模式下的 UI 元素下投射高程阴影的基色。

SystemShadowLight

用于在浅色模式下的 UI 元素下投射高程阴影的基本颜色。

SystemSurfaceBrightDark

标识名为 system_surface_bright_dark 的平台颜色资源。

SystemSurfaceBrightLight

标识名为 system_surface_bright_light 的平台颜色资源。

SystemSurfaceContainerDark

标识名为 system_surface_container_dark 的平台颜色资源。

SystemSurfaceContainerHighDark

标识名为 system_surface_container_high_dark 的平台颜色资源。

SystemSurfaceContainerHighestDark

标识名为 system_surface_container_highest_dark 的平台颜色资源。

SystemSurfaceContainerHighestLight

标识名为 system_surface_container_highest_light 的平台颜色资源。

SystemSurfaceContainerHighLight

标识名为 system_surface_container_high_light 的平台颜色资源。

SystemSurfaceContainerLight

标识名为 system_surface_container_light 的平台颜色资源。

SystemSurfaceContainerLowDark

标识名为 system_surface_container_low_dark 的平台颜色资源。

SystemSurfaceContainerLowestDark

标识名为 system_surface_container_lowest_dark 的平台颜色资源。

SystemSurfaceContainerLowestLight

标识名为 system_surface_container_lowest_light 的平台颜色资源。

SystemSurfaceContainerLowLight

标识名为 system_surface_container_low_light 的平台颜色资源。

SystemSurfaceDark

标识名为 system_surface_dark 的平台颜色资源。

SystemSurfaceDimDark

标识名为 system_surface_dim_dark 的平台颜色资源。

SystemSurfaceDimLight

标识名为 system_surface_dim_light 的平台颜色资源。

SystemSurfaceDisabled

标识名为 system_surface_disabled 的平台颜色资源。

SystemSurfaceLight

标识名为 system_surface_light 的平台颜色资源。

SystemSurfaceTintDark

弃用的背景填充颜色,用于在深色模式下创建Surface容器。

SystemSurfaceTintLight

弃用的背景填充颜色,用于在浅色模式下创建Surface容器。

SystemSurfaceVariantDark

标识名为 system_surface_variant_dark 的平台颜色资源。

SystemSurfaceVariantLight

标识名为 system_surface_variant_light 的平台颜色资源。

SystemTertiaryContainerDark

标识名为 system_tertiary_container_dark 的平台颜色资源。

SystemTertiaryContainerLight

标识名为 system_tertiary_container_light 的平台颜色资源。

SystemTertiaryDark

标识名为 system_tertiary_dark 的平台颜色资源。

SystemTertiaryDimDark

仅穿:填充颜色以区分或特殊操作,如深色模式下的锁屏提醒。

SystemTertiaryDimLight

仅穿:在浅色模式下为区分或特殊操作(如锁屏提醒)填充颜色。

SystemTertiaryFixed

标识名为 system_tertiary_fixed 的平台颜色资源。

SystemTertiaryFixedDark

为在深色模式下的浅色模式和深色模式中保持亮的区分操作填充颜色。

SystemTertiaryFixedDim

标识名为 system_tertiary_fixed_dim 的平台颜色资源。

SystemTertiaryFixedDimDark

深色填充颜色,用于在深色模式中保持亮光和深色模式的区分操作。

SystemTertiaryFixedDimLight

深色填充颜色,用于在浅色模式中保持明亮和深色模式的区分操作。

SystemTertiaryFixedLight

用于在浅色模式和深色模式下保持亮亮的区分操作的填充颜色。

SystemTertiaryLight

标识名为 system_tertiary_light 的平台颜色资源。

SystemTextHintInverseDark

标识名为 system_text_hint_inverse_dark 的平台颜色资源。

SystemTextHintInverseLight

标识名为 system_text_hint_inverse_light 的平台颜色资源。

SystemTextPrimaryInverseDark

标识名为 system_text_primary_inverse_dark 的平台颜色资源。

SystemTextPrimaryInverseDisableOnlyDark

标识名为 system_text_primary_inverse_disable_only_dark 的平台颜色资源。

SystemTextPrimaryInverseDisableOnlyLight

标识名为 system_text_primary_inverse_disable_only_light 的平台颜色资源。

SystemTextPrimaryInverseLight

标识名为 system_text_primary_inverse_light 的平台颜色资源。

SystemTextSecondaryAndTertiaryInverseDark

标识名为 system_text_secondary_and_tertiary_inverse_dark 的平台颜色资源。

SystemTextSecondaryAndTertiaryInverseDisabledDark

标识名为 system_text_secondary_and_tertiary_inverse_disabled_dark 的平台颜色资源。

SystemTextSecondaryAndTertiaryInverseDisabledLight

标识名为 system_text_secondary_and_tertiary_inverse_disabled_light 的平台颜色资源。

SystemTextSecondaryAndTertiaryInverseLight

标识名为 system_text_secondary_and_tertiary_inverse_light 的平台颜色资源。

TabIndicatorText

对所选状态使用白色的文本颜色状态列表,否则为 #808080。

TertiaryTextDark

通常使用 #808080 的文本颜色状态列表,其中dim_foreground_light在焦点窗口中启用的未压缩选择。

TertiaryTextLight

对每个声明状态使用 #808080 的文本颜色状态列表。

Transparent

基本平台 ARGB 值为 #000000000 的颜色资源,完全透明黑色。

White

颜色资源,其基平台 ARGB 值 #FFFFFFFF,不透明。

WidgetEditTextDark

在未聚焦和默认条目中使用bright_foreground_light的文本颜色状态列表。

属性

名称 说明
Class

返回此 Object的运行时类。

(继承自 Object)
Handle

基础 Android 实例的句柄。

(继承自 Object)
JniIdentityHashCode

获取互操作运行时分配给此Java对等的标识哈希代码。

(继承自 Object)
JniManagedPeerState

获取运行时上次分配的状态标志。

(继承自 JavaObject)
JniPeerMembers

提供此类型的 JNI 对等元数据。

PeerReference

获取此Java对等方的 JNI 对象引用。

(继承自 Object)
ThresholdClass

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

(继承自 Object)
ThresholdType

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

(继承自 Object)

方法

名称 说明
Clone()

创建并返回此对象的副本。

(继承自 Object)
Construct(JniObjectReference, JniObjectReferenceOptions)

将此对等方的构造委托给运行时的值管理器。

(继承自 JavaObject)
Dispose()

释放此Java对等方持有的资源。

(继承自 Object)
Dispose(Boolean)

为子类提供处置挂钩。 此实现不执行任何操作。

(继承自 Object)
DisposeUnlessReferenced()

要求值管理器释放此对等方,除非其映射保留此相同的托管实例。

(继承自 JavaObject)
Equals(Object)

测试另一个托管对等方是否引用同一Java对象。

(继承自 JavaObject)
Equals(Object)

指示其他对象是否“等于”此对象。

(继承自 Object)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
JavaFinalize()
已过时.

当垃圾回收确定不再引用该对象时,由对象上的垃圾回收器调用。

(继承自 Object)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions)

在不创建 JNI 引用副本的情况下,将引用值存储在控制块中。

(继承自 JavaObject)
ToArray<T>()

从此Java数组包装器创建托管数组。

(继承自 Object)
ToString()

返回对象的字符串表示形式。

(继承自 Object)
UnregisterFromRuntime()

从互操作运行时取消注册此Java对等。

(继承自 Object)
Wait()

导致当前线程等待,直到它被唤醒,通常是通过 通知 或 中断。

(继承自 Object)
Wait(Int64, Int32)

使当前线程等待直到唤醒,通常是通过 通知 或 中断,或直到经过一定数量的实时。

(继承自 Object)
Wait(Int64)

使当前线程等待直到唤醒,通常是通过 通知 或 中断,或直到经过一定数量的实时。

(继承自 Object)

显式接口实现

名称 说明
IJavaPeerable.Disposed()

将此对等方标记为已释放,并将disposing调用Dispose设置为 true.

(继承自 JavaObject)
IJavaPeerable.Finalized()

将此对等方标记为已释放,并将disposing调用Dispose设置为 false.

(继承自 JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock

获取此对等方使用的本机控制块指针。

(继承自 JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32)

存储运行时提供的标识哈希代码。

(继承自 JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

替换存储的托管对等状态标志。

(继承自 JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference)

更新对等引用,并在引用无效时释放已释放的对等方控制块。

(继承自 JavaObject)

扩展方法

名称 说明
GetJniTypeName(IJavaPeerable)

获取实例 self类型的 JNI 名称。

JavaAs<TResult>(IJavaPeerable)

尝试强制self键入TResult,检查强制是否在Java端有效。

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

重复使用兼容的托管对等,或获取请求类型的包装器。

TryJavaCast<TResult>(IJavaPeerable, TResult)

尝试强制self键入TResult,检查强制是否在Java端有效。

适用于