次要磚Secondary tiles

次要磚可讓使用者將您應用程式中的特定內容與深度連結釘選到其 [開始] 功能表,讓使用者未來能夠輕鬆地存取您應用程式中的內容。Secondary tiles allow users to pin specific content and deep links from your app onto their Start menu, providing easy future access to the content within your app.

次要磚螢幕擷取畫面

例如,使用者可將許多特定位置的天氣釘選在其 [開始] 功能表,如此可 (1) 輕鬆一覽動態磚所提供目前天氣的即時資訊,(2) 快速進入其所關注特定城市的天氣。For example, users can pin the weather for numerous specific locations on their Start menu, which provides (1) easy live glanceable information about the current weather thanks to Live Tiles, and (2) a quick entry point to the specific city's weather they care about. 使用者也可釘選特定的股票、新聞文章,及更多對使用者而言重要的項目。Users can also pin specific stocks, news articles, and more items that are important to them.

透過將次要磚新增到您的應用程式,您可以快速且有效率地協助使用者一再使用您的應用程式,並因次要磚所帶來的便利性而增加使用者的回頭率。By adding secondary tiles to your app, you help the user re-engage quickly and efficiently with your app, encouraging them to return more often thanks to the easy access that secondary tiles provides.

只有使用者才能釘選次要磚;未經使用者的核准,應用程式無法以程式設計的方式釘選次要磚Only users can pin a secondary tile; apps cannot pin secondary tiles programmatically without user approval . 使用者必須明確地按一下您應用程式內的 [釘選] 按鈕 (這也是您之後使用 API 要求建立次要磚的位置),接著系統會顯示對話方塊要求使用者確認是否想要將次要磚釘選。The user must explicitly click a "Pin" button within your app, at which point you then use the API to request to create a secondary tile, and then the system displays a dialog box asking the user to confirm whether they would like the tile pinned.

發行項Article 描述Description
次要磚指導方針Guidance on secondary tiles 了解您使用次要磚的時機和位置。Learn about when and where you should use secondary tiles.
釘選次要磚Pin secondary tiles 了解如何釘選次要磚。Learn how to pin a secondary tile.
從桌面應用程式釘選Pin from desktop apps 傳統型應用程式可以釘選次要磚,因為這是傳統型橋接器!Desktop apps can pin secondary tiles thanks to the Desktop Bridge!

次要磚與主要磚比較Secondary tiles in relation to primary tiles

次要磚與單一父項應用程式相關聯,Secondary tiles are associated with a single parent app. 並釘選到 [開始] 功能表,讓使用者有一致且有效的方法直接啟動至父項應用程式的常用區域,They are pinned to the Start menu to provide a user with a consistent and efficient way to launch directly into a frequently used area of the parent app. 這可以是父系應用程式中包含經常更新內容的一般子區段,也可以是應用程式中特定區域的深度連結。This can be either a general subsection of the parent app that contains frequently updated content, or a deep link to a specific area in the app.

次要磚案例的範例有:Examples of secondary tile scenarios include:

  • 天氣應用程式中特定城市的氣象更新Weather updates for a specific city in a weather app
  • 行事曆應用程式中即將進行活動的摘要A summary of upcoming events in a calendar app
  • 社交應用程式中重要連絡人的狀態與更新Status and updates from an important contact in a social app
  • RSS 讀取器中的特定摘要Specific feeds in an RSS reader
  • 音樂播放清單A music playlist
  • 部落格A blog

使用者想要監視的任何經常變更內容,也是很好的次要磚候選項目。Any frequently changing content that a user wants to monitor is a good candidate for a secondary tile. 在釘選次要磚後,使用者便可以透過次要磚收到快速更新,並用於直接啟動父系應用程式。After the secondary tile is pinned, users can receive at-a-glance updates through the tile and use it to launch directly into the parent app.

次要磚與主要磚有許多相似處:Secondary tiles are similar to primary tiles in many ways:

  • 兩者使用磚通知來顯示豐富的內容。They use tile notifications to display rich content.
  • 兩者必須為預設的磚內容包含 150 x 150 像素標誌。They must include a 150 x 150 pixel logo for the default tile content.
  • 兩者可以選擇性地包含其他的標誌大小,以允許有更大的磚大小。They can optionally include the other logo sizes to enable larger tile sizes.
  • 兩者可以顯示通知與徽章。They can show notifications and badges.
  • 兩者可以在 [開始] 功能表上重新排列。They can be rearranged on the Start menu.
  • 當應用程式解除安裝時會自動刪除兩者。They are automatically deleted when the app is uninstalled.
  • 在鎖定時會顯示其徽章與鎖定的詳細狀態文字。Their badge and lock detailed status text can be shown on lock.

不過,次要磚與主要磚間也有一些顯著的相異處:However, secondary tiles differ from primary tiles in some noticeable ways:

  • 使用者可以隨時刪除其次要磚,無須刪除父項應用程式。Users can delete their secondary tiles at any time without deleting the parent app.
  • 次要磚可以在執行階段建立。Secondary tiles can be created at run time. 應用程式磚只能在安裝期間建立。App tiles can be created only during installation.
  • 飛出視窗會提示使用者在新增次要磚前先確認。A flyout prompts the user for confirmation before adding a secondary tile.
  • 無法以程式設計的方式透過向使用者要求來為鎖定畫面選取次要磚。They cannot be programmatically selected for the lock screen through a request to the user. 使用者必須透過 [電腦設定] 中的 [個人化] 頁面,手動新增次要磚。The user must manually add the secondary tile through the Personalize page in PC Settings.

對於傳送通知,會為搭配次要磚使用的磚與徽章更新程式及推播通知通道提供特定的方法。For sending notifications, specific methods are provided for tile and badge updaters and push notification channels used with secondary tiles. 這些方法與搭配主要磚使用的版本一致。These parallel the versions used with primary tiles. 例如,CreateBadgeUpdaterForApplication 與 CreateBadgeUpdaterForSecondaryTile 比較。For instance, CreateBadgeUpdaterForApplication vs. CreateBadgeUpdaterForSecondaryTile.

次要磚指導方針Guidance on secondary tiles

若要了解您使用次要磚的時機與位置,及其他的使用指導方針,請參閱次要磚指導方針To learn about when and where you should use secondary tiles, and other usage guidance, please see Guidance on secondary tiles

釘選次要磚Pinning secondary tiles

若要了解如何釘選次要磚,請參閱釘選次要磚To learn how to pin secondary tiles, please see Pin secondary tiles.

傳統型應用程式和次要磚Desktop applications and secondary tiles

若要瞭解如何透過傳統型橋接器從您的桌面應用程式使用次要磚,請參閱 從桌面應用程式釘選次要磚To learn how to use secondary tiles from your desktop application via the Desktop Bridge, please see Pin secondary tiles from desktop apps.