public class ACAccountStore extends NSObject
IMPORTANT NOTE: You MUST keep the account store around for as long as you have any objects fetched from that store if you expect other 'sub-fetches' to work, most notably being fetching credentials. If you really just want to open the store to grab credentials, just be sure to grab the credential object and then you can release the owning account and store, e.g.
WARNING: All synchronous methods on ACAccountStore invoke xpc methods on accountsd. They are not appropriate to call on a UI Application's main thread.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ACAccountStore.Block_removeAccountWithCompletionHandler |
static interface |
ACAccountStore.Block_renewCredentialsForAccountCompletion |
static interface |
ACAccountStore.Block_requestAccessToAccountsWithTypeOptionsCompletion |
static interface |
ACAccountStore.Block_requestAccessToAccountsWithTypeWithCompletionHandler |
static interface |
ACAccountStore.Block_saveAccountWithCompletionHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
ACAccountStore(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
NSArray<?> |
accounts()
An array of all the accounts in an account database
WARNING: Synchronous, not appropriate to call on a UI Application's main thread
|
NSArray<?> |
accountsWithAccountType(ACAccountType accountType)
Returns the accounts matching a given account type.
|
ACAccountType |
accountTypeWithAccountTypeIdentifier(java.lang.String typeIdentifier)
Returns the account type object matching the account type identifier.
|
ACAccount |
accountWithIdentifier(java.lang.String identifier)
Returns the account matching the given account identifier
WARNING: Synchronous, not appropriate to call on a UI Application's main thread
|
static ACAccountStore |
alloc() |
static ACAccountStore |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static long |
hash_static() |
ACAccountStore |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static ACAccountStore |
new_objc() |
void |
removeAccountWithCompletionHandler(ACAccount account,
ACAccountStore.Block_removeAccountWithCompletionHandler completionHandler)
Removes an account from the account store.
|
void |
renewCredentialsForAccountCompletion(ACAccount account,
ACAccountStore.Block_renewCredentialsForAccountCompletion completionHandler)
Call this if you discover that an ACAccount's credential is no longer valid.
|
void |
requestAccessToAccountsWithTypeOptionsCompletion(ACAccountType accountType,
NSDictionary<?,?> options,
ACAccountStore.Block_requestAccessToAccountsWithTypeOptionsCompletion completion)
Obtains permission, if necessary, from the user to access protected properties, and utilize accounts
of a particular type in protected operations, for example OAuth signing.
|
void |
requestAccessToAccountsWithTypeWithCompletionHandler(ACAccountType accountType,
ACAccountStore.Block_requestAccessToAccountsWithTypeWithCompletionHandler handler)
Deprecated.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
saveAccountWithCompletionHandler(ACAccount account,
ACAccountStore.Block_saveAccountWithCompletionHandler completionHandler)
Saves the account to the account database.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static ACAccountStore alloc()
public static ACAccountStore allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static ACAccountStore new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public ACAccountType accountTypeWithAccountTypeIdentifier(java.lang.String typeIdentifier)
public ACAccount accountWithIdentifier(java.lang.String identifier)
public NSArray<?> accounts()
public NSArray<?> accountsWithAccountType(ACAccountType accountType)
public ACAccountStore init()
public void removeAccountWithCompletionHandler(ACAccount account, ACAccountStore.Block_removeAccountWithCompletionHandler completionHandler)
public void renewCredentialsForAccountCompletion(ACAccount account, ACAccountStore.Block_renewCredentialsForAccountCompletion completionHandler)
public void requestAccessToAccountsWithTypeOptionsCompletion(ACAccountType accountType, NSDictionary<?,?> options, ACAccountStore.Block_requestAccessToAccountsWithTypeOptionsCompletion completion)
@Deprecated public void requestAccessToAccountsWithTypeWithCompletionHandler(ACAccountType accountType, ACAccountStore.Block_requestAccessToAccountsWithTypeWithCompletionHandler handler)
public void saveAccountWithCompletionHandler(ACAccount account, ACAccountStore.Block_saveAccountWithCompletionHandler completionHandler)