SynchronizationSynchronizePinnedResourcesAsync Method |
Synchronizes all pinned resources with their mobile backends. For collections all pages will be downloaded.
Namespace: Oracle.Cloud.Mobile.SynchronizationAssembly: Oracle.Cloud.Mobile (in Oracle.Cloud.Mobile.dll) Version: 16.1.3.1 (16.1.3.1)
Syntaxpublic Task SynchronizePinnedResourcesAsync(
Func<MobileResource, Task<IEnumerable<KeyValuePair<MobileResource, PinPriority>>>> callback = null
)
Public Function SynchronizePinnedResourcesAsync (
Optional callback As Func(Of MobileResource, Task(Of IEnumerable(Of KeyValuePair(Of MobileResource, PinPriority)))) = Nothing
) As Task
public:
Task^ SynchronizePinnedResourcesAsync(
Func<MobileResource^, Task<IEnumerable<KeyValuePair<MobileResource^, PinPriority>>^>^>^ callback = nullptr
)
member SynchronizePinnedResourcesAsync :
?callback : Func<MobileResource, Task<IEnumerable<KeyValuePair<MobileResource, PinPriority>>>>
(* Defaults:
let _callback = defaultArg callback null
*)
-> Task
Parameters
- callback (Optional)
- Type: SystemFuncMobileResource, TaskIEnumerableKeyValuePairMobileResource, PinPriority
Optional delegate that will be invoked for every synchronized resource that can return
additional resources to pin. This allows callers to navigate an object graph and pin additional
anciliary resources. Callers do not need to pin these themselves and do not need to unpin them. The next time
SynchronizePinnedResourcesAsync is called all anciliary resources no longer required will be unpinned automatically.
Return Value
Type:
TaskAn awaitable object.
See Also