从后台音频代理更新动态磁贴?

编程入门 行业动态 更新时间:2024-10-28 03:30:25
本文介绍了从后台音频代理更新动态磁贴?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

从后台音频代理更新动态磁贴?

Updating live tiles from Background audio agent?

我知道您可以使用 PeriodicTask 的 ShellTile 更新 Liva Tils.是否可以更新后台音频代理的实时磁贴?

I know that you can update Liva Tils with ShellTile of PeriodicTask. is it possible to update the live tiles of background audio agent?

例如,当曲目更改为实时磁贴上的标题曲目时,我想这样做.这可能吗?

I want to do, for example, when the track changed to the title track on the live tile. Is this possible?

只是不想做后台代理的一些应用:代理音频甚至定期后台代理.这么重的负载会不会影响电池寿命?

Just did not want to do would have been a few applications of background agents: agent audio and even periodic background agent. Would not this heavy load and impact on battery life?

更新:BackgroundAudioPlayer是这样试的:

Update: BackgroundAudioPlayer tried in this way:

ShellTile apptile = ShellTile.ActiveTiles.First();
            StandardTileData appTileData = new StandardTileData();
            appTileData.Title = "Title App";
            appTileData.Count = 5;
            appTileData.BackgroundImage = new Uri("/front.png", UriKind.RelativeOrAbsolute);
            apptile.Update(appTileData);

我收到一条错误消息 First() is not found

And I get an error message First() is not found

推荐答案

using System.Linq 添加到文件顶部.

add using System.Linq to the top of your file.

这篇关于从后台音频代理更新动态磁贴?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-25 14:50:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1119403.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:后台   音频   动态

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!