HarmonyOS 鸿蒙Next如何跳转到系统设置的生物识别和密码页面
HarmonyOS 鸿蒙Next如何跳转到系统设置的生物识别和密码页面
如何跳转到系统设置的 生物识别和密码 页面
参考如下代码:
Button("跳转生物识别和密码页面")
.ButtonStyle()
.onClick(() => {
let context = getContext(this) as common.UIAbilityContext;
let want: Want = {
bundleName: 'com.huawei.hmos.settings',
abilityName: 'com.huawei.hmos.settings.MainAbility',
uri: 'biometrics_and_password_settings',
parameters: {
pushParams: 'com.example.natificationdemo'
}
};
context.startAbility(want)
})
export enum NavEntryKey {
BLUETOOTH_ENTRY = 'bluetooth_entry', // HOME-蓝牙二级页面
WIFI_ENTRY = 'wifi_entry', // HOME-WLAN二级页面
OOBE_WIFI_ENTRY = 'oobe_wifi_entry', // HOME-WLAN二级页面,用于OOBE阶段的WiFi页面
EXTERNAL_WIFI_ENTRY = 'external_wifi_entry', // HOME-WLAN二级页面,样机管理拉起的WiFi页面
MOBILE_ENTRY = 'mobile_network_entry', // HOME-移动网络二级页面
DISPLAY_ENTRY = 'display_settings', // HOME-显示和亮度二级页面
SCREEN_ZOOM = 'screen_zoom', // HOME-显示和亮度-显示大小三级页面
SCREEN_REFRESH_RATE_ENTRY = 'screen_refresh_rate_entry', // HOME-显示和亮度-屏幕刷新率三级页面
SCREEN_MODE_ENTRY = 'screen_mode', //
VOLUME_ENTRY = 'volume_settings', // HOME-声音二级页面
MORE_CONNECTION_ENTRY = 'more_connections_settings', // HOME-更多连接二级页面
BIOMETRICS_PASSWORD_ENTRY = 'biometrics_and_password_settings', // HOME-生物识别和密码二级页面
APPLICATION_SERVICE_ENTRY = 'application_and_service_settings', // HOME-应用与服务二级页面
STORAGE_ENTRY = 'storage_settings', // HOME-存储二级页面
PRIVACY_ENTRY = 'privacy_settings', // HOME-隐私二级页面
USERS_ACCOUNT_ENTRY = 'users_accounts', // HOME-用户和账户二级页面
SYSTEM_UPDATE_ENTRY = 'system_and_updates', // HOME-系统和更新二级页面
ABOUT_DEVICE_ENTRY = 'about_device', // HOME-关于本机二级页面
WIFI_MENU_ENTRY = 'wifi_menu', // HOME-WLAN-连接三级页面
BLUETOOTH_BONDED_ENTRY = 'bluetooth_bonded_entry', // HOME-蓝牙-配对详情三级页面
DEVICE_ENTRY = 'device_name', // HOME-关于本机-设备名称三级页面
TIME_ZONE_ENTRY = 'time_zone_settings', // HOME-系统和更新-日期时间-时区-时区选择列表五级页面
DATA_TIME_ENTRY = 'date_and_time', // HOME-系统和更新-日期时间三级页面
SET_LANGUAGE_ENTRY = 'set_language', // HOME-系统和更新-语言和输入法-语言和输入法四级页面
LANGUAGE_REGION_ENTRY = 'set_language_region', // HOME-系统和更新-语言和输入法-语言和地区-语言和地区5级页面
RESET_ENTRY = 'reset_settings', // HOME-系统和更新-重置三级页面
DEVELOP_OPTION_ENTRY = 'developer_options_settings',// HOME-系统和更新-开发人员选项三级页面
CURRENT_USER_ENTRY = 'current_user', // HOME-用户和账户-当前登录(用户)三级页面
NFC_ENTRY = 'nfc_settings', // HOME-更多连接-NFC三级页面
HOTSPOT_ENTRY = 'hotspot_data_settings', // HOME-移动网络-个人热点界面
HOTSPOT_PWD_ENTRY = 'password_entry', // HOME-移动网络-个人热点-密码界面
HOTSPOT_CONNECTED_ENTRY = 'connected_device_entry', // HOME-移动网络-个人热点-已连接设备界面
HOTSPOT_SHARE_ENTRY = 'more_share_entry', // HOME-移动网络-个人热点-更多共享设置界面
LOCK_SCREEN_PASSWORD_ENTRY = 'lock_screen_password_title', // HOME-生物识别和密码-锁屏密码三级页面
CREATE_NUMBER_PSD_ENTRY = 'change_six_to_number_entry', // HOME-生物识别和密码-锁屏密码(其他密码类型)-自定义数字密码(设置锁屏数字密码)四级页面
CREATE_MIX_PSD_ENTRY = 'change_six_to_mixed_entry', // HOME-生物识别和密码-锁屏密码(其他密码类型)-混合密码(设置锁屏密码)四级页面
CHECK_PSD_ENTRY = 'check_psd_entry', // HOME-生物识别和密码-关闭锁屏密码(输入锁屏密码)三级页面
APPLICATION_LIST_ENTRY = 'application_settings', // phone: HOME-应用与服务-应用管理三级页面 pc: HOME-应用管理二级页面
APPLICATION_INFO_ENTRY = 'application_info_entry', // phone: HOME-应用与服务-应用管理-具体应用四级页面 pc: HOME-应用管理-具体应用三级页面
LOCATION_MANAGER_ENTRY = 'location_manager_settings', // HOME-隐私-定位服务三级页面
LOCATION_HELP_ENTRY = 'location_help_entry', // HOME-隐私-定位服务-帮助四级页面
EDIT_LANGUAGE_ENTRY = 'edit_language_entry', // HOME-系统和更新-语言和输入法-语言和地区-编辑(编译语言)五级页面
ADD_LANGUAGE_ENTRY = 'add_language_entry', // HOME-系统和更新-语言和输入法-语言和地区-添加语言五级页面
SELECT_REGION_ENTRY = 'select_region_entry', // HOME-系统和更新-语言和输入法-语言和地区-当前地区(选择地区)五级页面
RESET_FACTORY = 'reset_factory_settings', // HOME-系统和更新-重置-恢复出厂设置四级页面
RESET_NET = 'reset_net_settings', // HOME-系统和更新-重置-还原网络设置四级页面
CONFIRM_RESET_FACTORY_ENTRY = 'reset_confirm_settings',// HOME-系统和更新-重置-恢复出厂设置-重置手机五级页面
CONFIRM_RESET_NET_ENTRY = 'reset_net_confirm_settings', // HOME-系统和更新-重置-还原网络设置-还原网络设置确认五级页面
PC_CONFIRM_RESET_FACTORY_ENTRY = 'reset_factory_button', // PC: HOME-系统和更新-重置-恢复出厂设置-重置本机(确认页面)五级页面
GUEST_USER_ENTRY = 'guest_user_menu', // PC: HOME-用户-客人用户三级页面
ADMIN_USER_ENTRY = 'admin_user_entry', // PC: HOME-用户二级页面
ACCESSIBILITY_SERVICE_ENTRY = 'accessibility_service_entry', // Phone:HOME-辅助功能-已安装的服务-服务详情四级页面
ACCESSIBILITY_LIST_ENTRY = 'accessibility_list_entry', // Phone:HOME-辅助功能-已安装的服务三级页面
ACCESSIBILITY_FEATURE_ENTRY = 'accessibility_feature', // Phone:HOME-辅助功能二级页面
ACCESSIBILITY_OPERATION_ENTRY = 'accessibility_operation_entry', // Phone:HOME-辅助功能-辅助功能快捷方式三级页面
ACCESSIBILITY_MORE_SETTINGS_ENTRY = 'accessibility_more_settings_entry', // Phone:HOME-辅助功能-已安装的服务-服务详情-更多设置五级页面
FINGERPRINT_SETTING_ENTRY = 'fingerprint_settings_entry', // PHONE:HOME-生物识别与密码-指纹3级页面
FINGERPRINT_SCREEN_INTRO_ENTRY = 'fingerprint_screen_intro_entry', // PHONE:HOME-生物识别与密码-指纹-新建指纹引导页4级页面
FINGERPRINT_ENROLL_ENTRY = 'fingerprint_enroll_entry', // PHONE:HOME-生物识别与密码-指纹-新建指纹引导页-新建指纹5级页面
CONFIGURATION_OPTION_ENTRY = 'configuration_options_settings', // 针对设置接入框架 配置文件接入的场景,通过json解析的界面,暂时还没有应用接入
USER_SETTING_ENTRY = 'users_settings', // PC: 用户和账户导航栏
PC_NETWORK_SETTINGS = 'pc_network_settings', // PC: HOME-网络设置二级页面
PC_AUDIO_SETTINGS = 'pc_audio_settings', // PC: HOME-声音设置二级页面
PC_KEYBOARD_SETTINGS = 'pc_keyboard', // PC: HOME-键盘设置二级页面
PC_TRACKPAD_SETTINGS = 'pc_trackpad_settings', // PC: HOME-触控板设置二级页面
}
部分无注释的
WLAN_MAC_ENTRY = 'WLAN_MAC',
BLUETOOTH_ENTRY = 'bluetooth_entry',
WIFI_ENTRY = 'wifi_entry',
OOBE_WIFI_ENTRY = 'oobe_wifi_entry',
OOBE_UI_EXTENSION_WIFI_ENTRY = 'oobe_wifi_ui_extension_entry',
EXTERNAL_WIFI_ENTRY = 'external_wifi_entry',
MOBILE_ENTRY = 'mobile_network_entry',
THEME_ENTRY = 'theme_settings',
COLOR_ENTRY = 'system_color',
DISPLAY_ENTRY = 'display_settings',
SCREEN_ZOOM = 'screen_zoom',
DARK_SETTINGS = 'dark_settings',
COLOR_SETTINGS = 'color_setting',
SCREEN_REFRESH_RATE_ENTRY = 'screen_refresh_rate_entry',
COLOR_ADJUSTMENT_AND_COLOR_TEMPERATURE_ENTRY = 'color_adjustment_and_color_temperature_entry',
SCREEN_RESOLUTION_ENTRY = 'screen_resolution_entry',
AOD_SETTINGS_ENTRY = 'aod_settings_entry',
SCREEN_MODE_ENTRY = 'screen_mode',
VOLUME_ENTRY = 'volume_settings',
RING_TONE_ENTRY = 'ring_tone_settings',
MESSAGING_TONE_ENTRY = 'Messaging_tone_settings',
NOTIFICATION_TONE_ENTRY = 'notification_tone_settings',
MORE_CONNECTION_ENTRY = 'more_connections_settings',
SHARE_SETTINGS_ENTRY = 'share_settings',
BIOMETRICS_PASSWORD_ENTRY = 'biometrics_and_password_settings',
APPLICATION_SERVICE_ENTRY = 'application_and_service_settings',
BATTERY_ENTRY = 'battery',
STORAGE_ENTRY = 'storage_settings',
PRIVACY_ENTRY = 'privacy_settings',
USERS_ACCOUNT_ENTRY = 'users_accounts',
SYSTEM_UPDATE_ENTRY = 'system_and_updates',
ABOUT_DEVICE_ENTRY = 'about_device',
WIFI_MENU_ENTRY = 'wifi_menu',
WIFI_PRECISION_MENU_ENTRY = 'wifi_precision_menu',
BLUETOOTH_BONDED_ENTRY = 'bluetooth_bonded_entry',
DEVICE_ENTRY = 'device_name',
TIME_ZONE_ENTRY = 'time_zone_settings',
DATA_TIME_ENTRY = 'date_and_time',
INPUT_ENTRY = 'set_input',
SET_LANGUAGE_ENTRY = 'set_language',
LANGUAGE_REGION_ENTRY = 'set_language_region',
RESET_ENTRY = 'reset_settings',
DEVELOP_OPTION_ENTRY = 'developer_options_settings',
CURRENT_USER_ENTRY = 'current_user',
SHARE_ENTRY = 'share_settings',
NFC_ENTRY = 'nfc_settings',
HICAR_ENTRY = 'hicar_setting',
SUPER_LAUNCHER_ENTRY = 'super_launcher_setting',
HOTSPOT_ENTRY = 'hotspot_data_settings',
HOTSPOT_PWD_ENTRY = 'password_entry',
HOTSPOT_CONNECTED_ENTRY = 'connected_device_entry',
HOTSPOT_SHARE_ENTRY = 'more_share_entry',
LOCK_SCREEN_PASSWORD_ENTRY = 'lock_screen_password_title',
CREATE_NUMBER_PSD_ENTRY = 'change_six_to_number_entry',
CREATE_MIX_PSD_ENTRY = 'change_six_to_mixed_entry',
CHECK_PSD_ENTRY = 'check_psd_entry',
APPLICATION_LIST_ENTRY = 'application_settings',
APPLICATION_INFO_ENTRY = 'application_info_entry',
OTHER_INPUT_DETAIL_SETTINGS = 'other_input_detail_settings',
INPUT_UIEXTENSION = 'input_uiextension',
INPUT_UIEXTENSION_LIST = 'input_uiextension_list',
LOCATION_MANAGER_ENTRY = 'location_manager_settings',
LOCATION_HELP_ENTRY = 'location_help_entry',
EDIT_LANGUAGE_ENTRY = 'edit_language_entry',
ADD_LANGUAGE_ENTRY = 'add_language_entry',
SELECT_REGION_ENTRY = 'select_region_entry',
RESET_FACTORY = 'reset_factory_settings',
RESET_NET = 'reset_net_settings',
CONFIRM_RESET_FACTORY_ENTRY = 'reset_confirm_settings',
CONFIRM_RESET_NET_ENTRY = 'reset_net_confirm_settings',
PC_CONFIRM_RESET_FACTORY_ENTRY = 'reset_factory_button',
GUEST_USER_ENTRY = 'guest_user_menu',
ADMIN_USER_ENTRY = 'admin_user_entry',
HUAWEI_ASSISTANT = 'vassistant_setting',
ACCESSIBILITY_SERVICE_ENTRY = 'accessibility_service_entry',
ACCESSIBILITY_LIST_ENTRY = 'accessibility_list_entry',
ACCESSIBILITY_FEATURE_ENTRY = 'accessibility_feature',
ACCESSIBILITY_OPERATION_ENTRY = 'accessibility_operation_entry',
ACCESSIBILITY_COLOR_FILTER_ENTRY = 'accessibility_color_filter_entry',
ACCESSIBILITY_TOUCHSCREEN_ENTRY = 'accessibility_touchscreen_entry',
ACCESSIBILITY_MORE_SETTINGS_ENTRY = 'accessibility_more_settings_entry',
FINGERPRINT_SETTING_ENTRY = 'fingerprint_settings_entry',
UNDER_SCREEN_FINGERPRINT_INTRO_ENTRY = 'under_screen_fingerprint_intro_entry',
UNDER_SCREEN_FINGERPRINT_ENROLL_ENTRY = 'under_screen_fingerprint_enroll_entry',
OUT_SCREEN_FINGERPRINT_ENROLL_ENTRY = 'out_screen_fingerprint_enroll_entry',
FINGERPRINT_DECLARATION_ENTRY = 'fingerprint_declaration_entry',
CONFIGURATION_OPTION_ENTRY = 'configuration_options_settings',
USER_SETTING_ENTRY = 'users_settings',
PC_NETWORK_SETTINGS = 'pc_network_settings',
PC_AUDIO_SETTINGS = 'pc_audio_settings',
PC_APP_SETUP_SETTINGS = 'pc_app_setup_settings',
PC_KEYBOARD_SETTINGS = 'pc_keyboard',
PC_MOUSE_SETTINGS = 'pc_mouse_settings',
PC_NOTIFICATION_SETTINGS = 'systemui_notification_settings',
SYSTEM_DATA_CLONE_SETTINGS_ENTRY = 'com_hmos_data_clone_settings',
PHONE_NOTIFICATION_SETTINGS_ENTRY = 'systemui_notification_settings',
ACCOUNT_SETTINGS_ENTRY = 'hms_account_home_settings',
USER_IMPROVEMENT_SETTINGS = 'user_experience_improvement_settings',
PC_TRACKPAD_SETTINGS = 'pc_trackpad_settings',
FACE_SETTING_ENTRY = 'face_settings_entry',
FACE_AUTH_PREFERENCE_ENTRY = 'FaceAuthPreference',
FACE_AUTH_FEATURE_GUIDE_ENTRY = 'FaceAuthFeatureGuide',
FACE_AUTH_ENROLL_ENTRY = 'FaceAuthEnroll',
FACE_AUTH_ENROLL_GUIDE_3D_ENTRY = 'FaceAuthEnrollGuide3D',
FACE_AUTH_DECLARATION_3D_ENTRY = 'FaceAuthDeclaration3d',
FACE_AUTH_DECLARATION_2D_ENTRY = 'FaceAuthDeclaration2d',
STATUS_INFO_SETTING = 'status_information_settings',
LEGAL_INFO_SETTING = 'legal_information_settings',
DEVICE_PERMITTED_AGREEMENT = 'device_permitted_agreement',
SETTING_SAFETY_TITLE = 'settings_safetylegal_title',
SETTING_LICENSE_TITLE = 'settings_license_activity_title',
OPEN_SOURCE_SHOW_TITLE = 'open_source_show_title',
APP_OPEN_SOURCE_SHOW = 'APP_OPEN_SOURCE_SHOW',
BASIC_SERVICE = 'basic_services',
BASIC_SERVICE_SHOW = 'basic_service_statement_show',
ACCESSIBILITY_SCREEN_READER_ENTRY = 'accessibility_screen_reader_entry',
SCREEN_READER_MORE_SETTINGS_ENTRY = 'screen_reader_more_settings_entry',
PARENT_CONTROL_ENTRY = 'parent_control',
AUDIO_BUTLER_ENTRY = 'audio_butler',
MOBILE_DATA_SETTINGS_ENTRY = 'mobile_data_settings_entry',
OUC_SOFTWARE_UPDATE_SETTINGS = 'com_hmos_ouc_software_update_settings',
OUC_NEW_VERSION = 'com_hmos_ouc_new_version_settings',
OUC_CURRENT_VERSION = 'com_hmos_ouc_current_version_settings',
OUC_PARAM_VERSION = 'com_hmos_ouc_param_version_settings',
PC_PRINTERS_AND_SCANNERS = 'pc_printers_and_scanners',
SIM_CARD_MANAGEMENT_ENTRY = 'sim_card_management_entry',
BATTERY_HEALTH_MANAGEMENT_ENTRY = 'smart_charge_battery_health',
DEFAULT_BROWSER_ENTRY = 'default_browser_settings',
ADD_OTHER_WIFI_ENTRY = 'add_other_wifi_entry',
WIFI_SETUP_PROXY_ENTRY = 'wifi_setup_proxy_entry',
WIFI_SETUP_IP_ENTRY = 'wifi_setup_ip_entry',
SYSTEM_ROLLBACK_ENTRY = 'system_rollback_entry',
EYE_COMFORT_MODE = 'eye_comfort_mode',
APPLICATION_PERMISSION_SETTINGS_ENTRY = 'application_permission_settings',
HI_WRITE_SETTINGS_ENTRY = 'hi_write_settings',
USB_DEBUG = 'usb_debug',
SYSTM_WIRELESS_COMMISSIONING = 'system_wireless_commissioning',
WRIELLESS_COMMISSIONING = 'wireless_commissioning',
GLOBAL_SEARCH_ENTRY = 'global_search_entry',
KEY_MOUSE_SHARE_ENTRY = 'key_mouse_share_entry',
PC_POWERANDBATTERY_SETTINGS = 'pc_powerandbattery_settings',
MEETIME_SETTINGS = 'system_meetime_settings',
DEFAULT_PAYMENT_APPLICATION = 'default_payment_application',
CELLBROADCAST_ENTRY = 'com_hmos_cellbroadcast'"
在HarmonyOS鸿蒙Next系统中,要跳转到系统设置的“生物识别和密码”页面,可以通过特定的系统API或URL Scheme来实现,类似于在安卓中使用Intent跳转至系统设置页面的方式。但需要注意的是,鸿蒙系统的API和URL Scheme可能与安卓有所不同,且具体实现方式可能受系统版本和权限管理等因素的限制。
一般来说,鸿蒙应用开发者可以通过查阅鸿蒙系统的官方开发文档,了解如何使用系统提供的API或URL Scheme来实现页面跳转。以下是一个可能的实现思路:
- 使用鸿蒙系统提供的路由模块或相关API。
- 构造一个指向“生物识别和密码”页面的URI或路由参数。
- 调用系统API或路由模块的方法,传入上述URI或路由参数,实现页面跳转。
如果上述方法无法实现跳转,或需要更具体的代码示例,建议参考鸿蒙系统的官方开发文档或示例代码。如果问题依旧没法解决请联系官网客服,官网地址是:https://www.itying.com/category-93-b0.html。