MobileResourceOnLinkedResourceUriChanged Method |
This method along with AddLinkedResourceAsync can be used to monitor changes to linked resources created offlien: ex.
if Resource1 and Resource2 were both created while offline and Resource2 embeds a link to Resource1, the URI for
Resource1 would be a temporary one created offline by the system. On going online, when the real URI for Resource1 gets
assigned by the service, Resource2 would get notified in OnLinkedResourceUriChanged() and can update the embedded link
to the new URI.
For this method to be invoked, AddLinkedResourceAsync() must have been previous called and both the resources saved
offline.
Namespace: Oracle.Cloud.Mobile.Synchronization.MobileEndpointAssemblies: Oracle.Cloud.Mobile.Synchronization.PCL (in Oracle.Cloud.Mobile.Synchronization.PCL.dll) Version: 16.1.3.1 (16.1.3.1)
Oracle.Cloud.Mobile (in Oracle.Cloud.Mobile.dll) Version: 16.1.3.1 (16.1.3.1)
Syntaxprotected virtual bool OnLinkedResourceUriChanged(
Uri oldUri,
Uri newUri
)
Protected Overridable Function OnLinkedResourceUriChanged (
oldUri As Uri,
newUri As Uri
) As Boolean
protected:
virtual bool OnLinkedResourceUriChanged(
Uri^ oldUri,
Uri^ newUri
)
abstract OnLinkedResourceUriChanged :
oldUri : Uri *
newUri : Uri -> bool
override OnLinkedResourceUriChanged :
oldUri : Uri *
newUri : Uri -> bool
Parameters
- oldUri
- Type: SystemUri
The old URI of the linked resource. - newUri
- Type: SystemUri
The new URI that the service assigned to the linked resource.
Return Value
Type:
BooleanReturns true if the MobileResource was updated in which case the system will save it, false otherwise.
See Also