Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class AndroidKeySettings.
Settings specific to keys that can be used by Android apps.
Generated from protobuf message google.cloud.recaptchaenterprise.v1.AndroidKeySettings
Namespace
Google \ Cloud \ RecaptchaEnterprise \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ allow_all_package_names
bool
Optional. If set to true, allowed_package_names are not enforced.
↳ allowed_package_names
array
Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname'
↳ support_non_google_app_store_distribution
bool
Optional. Set to true for keys that are used in an Android application that is available for download in app stores in addition to the Google Play Store.
getAllowAllPackageNames
Optional. If set to true, allowed_package_names are not enforced.
Returns
Type
Description
bool
setAllowAllPackageNames
Optional. If set to true, allowed_package_names are not enforced.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getAllowedPackageNames
Optional. Android package names of apps allowed to use the key.
Optional. Android package names of apps allowed to use the key.
Example: 'com.companyname.appname'
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getSupportNonGoogleAppStoreDistribution
Optional. Set to true for keys that are used in an Android application that
is available for download in app stores in addition to the Google Play
Store.
Returns
Type
Description
bool
setSupportNonGoogleAppStoreDistribution
Optional. Set to true for keys that are used in an Android application that
is available for download in app stores in addition to the Google Play
Store.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Recaptcha Enterprise V1 Client - Class AndroidKeySettings (2.1.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.3 (latest)](/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.AndroidKeySettings)\n- [2.1.2](/php/docs/reference/cloud-recaptcha-enterprise/2.1.2/V1.AndroidKeySettings)\n- [2.0.1](/php/docs/reference/cloud-recaptcha-enterprise/2.0.1/V1.AndroidKeySettings)\n- [1.17.2](/php/docs/reference/cloud-recaptcha-enterprise/1.17.2/V1.AndroidKeySettings)\n- [1.16.1](/php/docs/reference/cloud-recaptcha-enterprise/1.16.1/V1.AndroidKeySettings)\n- [1.15.0](/php/docs/reference/cloud-recaptcha-enterprise/1.15.0/V1.AndroidKeySettings)\n- [1.14.0](/php/docs/reference/cloud-recaptcha-enterprise/1.14.0/V1.AndroidKeySettings)\n- [1.13.0](/php/docs/reference/cloud-recaptcha-enterprise/1.13.0/V1.AndroidKeySettings)\n- [1.12.2](/php/docs/reference/cloud-recaptcha-enterprise/1.12.2/V1.AndroidKeySettings)\n- [1.8.0](/php/docs/reference/cloud-recaptcha-enterprise/1.8.0/V1.AndroidKeySettings)\n- [1.7.0](/php/docs/reference/cloud-recaptcha-enterprise/1.7.0/V1.AndroidKeySettings)\n- [1.6.0](/php/docs/reference/cloud-recaptcha-enterprise/1.6.0/V1.AndroidKeySettings)\n- [1.5.2](/php/docs/reference/cloud-recaptcha-enterprise/1.5.2/V1.AndroidKeySettings)\n- [1.4.2](/php/docs/reference/cloud-recaptcha-enterprise/1.4.2/V1.AndroidKeySettings)\n- [1.3.2](/php/docs/reference/cloud-recaptcha-enterprise/1.3.2/V1.AndroidKeySettings)\n- [1.2.6](/php/docs/reference/cloud-recaptcha-enterprise/1.2.6/V1.AndroidKeySettings) \nReference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class AndroidKeySettings.\n\nSettings specific to keys that can be used by Android apps.\n\nGenerated from protobuf message `google.cloud.recaptchaenterprise.v1.AndroidKeySettings`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ RecaptchaEnterprise \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAllowAllPackageNames\n\nOptional. If set to true, allowed_package_names are not enforced.\n\n### setAllowAllPackageNames\n\nOptional. If set to true, allowed_package_names are not enforced.\n\n### getAllowedPackageNames\n\nOptional. Android package names of apps allowed to use the key.\n\nExample: 'com.companyname.appname'\n\n### setAllowedPackageNames\n\nOptional. Android package names of apps allowed to use the key.\n\nExample: 'com.companyname.appname'\n\n### getSupportNonGoogleAppStoreDistribution\n\nOptional. Set to true for keys that are used in an Android application that\nis available for download in app stores in addition to the Google Play\nStore.\n\n### setSupportNonGoogleAppStoreDistribution\n\nOptional. Set to true for keys that are used in an Android application that\nis available for download in app stores in addition to the Google Play\nStore."]]