-1

Mirror API .NET クライアントを使用してカスタム メニュー項目を挿入する方法。

ありがとうございました

4

1 に答える 1

2

Timeline オブジェクトへのメニュー項目の追加の詳細については、 https://developers.google.com/resources/api-libraries/documentation/mirror/v1/csharp/latest/classGoogle_1_1Apis_1_1Mirror_1_1v1_1_1Data_1_1TimelineItem.html#ac95fb985d873aed1ed8277c8bfcd3374を参照してください。MenuItem オブジェクトの Action については、 https://developers.google.com/resources/api-libraries/documentation/mirror/v1/csharp/latest/classGoogle_1_1Apis_1_1Mirror_1_1v1_1_1Data_1_1MenuItem.html#a4b3f412526fe4a4cd68a760a0ef95d0cおよびhttps://developers.google.com/resourcesで説明されています。 /api-libraries/documentation/mirror/v1/csharp/latest/classGoogle_1_1Apis_1_1Mirror_1_1v1_1_1Data_1_1MenuItem.html#ac499b1aaa93ce833a6d9eb20eaba43feを参照して、そのメニュー項目に表示される値を設定する方法を確認してください。

タイムライン アイテムとカスタム メニュー アイテムの追加に関する一般的なガイダンスは、https://developers.google.com/glass/menu-items#defining_custom_menu_itemsで入手できます。

最後に、https://github.com/googleglass/mirror-quickstart-dotnet/blob/master/Controllers/MainController.csにサンプル ソースがあり、アクションを使用してアイテムを挿入する方法を示しており、適応できるはずです。そこにある MenuItem でカスタム メニューを使用します。

于 2013-10-17T12:40:16.773 に答える