Click or drag to resize
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.MobileEndpoint
Assemblies:  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)
Syntax
protected virtual bool OnLinkedResourceUriChanged(
	Uri oldUri,
	Uri newUri
)

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: Boolean
Returns true if the MobileResource was updated in which case the system will save it, false otherwise.
See Also