Esempio n. 1
0
        public override async Task DeleteSelectedFile(Thumbnail item)
        {
            var data     = item.Source as RemoteApiContentInfo;
            var contents = new TargetContents();

            contents.ContentUris = new List <string>();
            contents.ContentUris.Add(data.Uri);

            await DeleteRemoteApiContents(contents);

            ContentsCollection.Remove(item);
        }
Esempio n. 2
0
        private async Task DeleteRemoteApiContents(TargetContents contents)
        {
            var av = TargetDevice.Api.AvContent;

            if (av != null && contents != null)
            {
                await av.DeleteContentAsync(contents).ConfigureAwait(false);

                DebugUtil.Log(() => "Delete contents completed");
            }
            else
            {
                DebugUtil.Log(() => "Not ready to delete contents");
            }
        }