AccountManager.SetAccountVisibility(Account, String, AccountVisibility) Method
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.
Set visibility value of given account to certain package.
[Android.Runtime.Register("setAccountVisibility", "(Landroid/accounts/Account;Ljava/lang/String;I)Z", "GetSetAccountVisibility_Landroid_accounts_Account_Ljava_lang_String_IHandler", ApiSince=26)]
public virtual bool SetAccountVisibility (Android.Accounts.Account? account, string? packageName, Android.Accounts.AccountVisibility visibility);
[<Android.Runtime.Register("setAccountVisibility", "(Landroid/accounts/Account;Ljava/lang/String;I)Z", "GetSetAccountVisibility_Landroid_accounts_Account_Ljava_lang_String_IHandler", ApiSince=26)>]
abstract member SetAccountVisibility : Android.Accounts.Account * string * Android.Accounts.AccountVisibility -> bool
override this.SetAccountVisibility : Android.Accounts.Account * string * Android.Accounts.AccountVisibility -> bool
Parameters
- account
- Account
Account to update visibility
- packageName
- String
Package name of the application to modify account visibility
- visibility
- AccountVisibility
New visibility value
Returns
True, if visibility value was successfully updated.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.