UserActivityVisualElements クラス
- java.
lang. Object - NativeBase
- com.
microsoft. connecteddevices. userdata. useractivities. UserActivityVisualElements
- com.
public class UserActivityVisualElements
このクラスには、**UserActivity** の [詳細] タイルに表示できる、説明やアイコンなどの視覚的な情報が含まれています。
メソッドの概要
| 修飾子と型 | メソッドと説明 |
|---|---|
| String |
getAdaptiveCardJson()
アクティビティのコンテンツ テキストを取得します。 |
|
User |
getAttribution()
アクティビティのグラフィカル情報を取得します。 |
| String |
getAttributionDisplayText()
アクティビティ カードの上部バナーのテキストを取得します。 |
| int |
getBackgroundColor()
アクティビティ ビジュアルの背景色を取得します |
| String |
getDescriptionText()
は、アクティビティの説明テキストを取得します。 |
| String |
getDisplayText()
アクティビティの表示テキストを取得します。 |
| void |
setAdaptiveCardJson(@Nullable String adaptiveCardJson)
アクティビティの [詳細] タイルのコンテンツ テキストを設定します。 |
| void |
setAttribution(@Nullable UserActivityAttribution attribution)
アクティビティに関するグラフィカル情報を設定します。 |
| void |
setAttributionDisplayText(@Nullable String attributionDisplayText)
アクティビティ カードの上部バナーに表示されるテキストを設定します。 |
| void |
setBackgroundColor(@ColorInt int backgroundColor)
アクティビティ ビジュアルの背景色を設定します。 |
| void |
setDescriptionText(@Nullable String description)
アクティビティの [詳細] タイルの説明テキストを設定します。 |
| void |
setDisplayText(@NonNull String displayText)
アクティビティの [詳細] タイルの表示テキストを設定します。 |
メソッドの詳細
getAdaptiveCardJson
public String getAdaptiveCardJson()
アクティビティのコンテンツ テキストを取得します。
戻り値:
getAttribution
public UserActivityAttribution getAttribution()
アクティビティのグラフィカル情報を取得します。
戻り値:
getAttributionDisplayText
public String getAttributionDisplayText()
アクティビティ カードの上部バナーのテキストを取得します。
戻り値:
getBackgroundColor
public int getBackgroundColor()
アクティビティ ビジュアルの背景色を取得します
戻り値:
getDescriptionText
public String getDescriptionText()
は、アクティビティの説明テキストを取得します。
戻り値:
getDisplayText
public String getDisplayText()
アクティビティの表示テキストを取得します。
戻り値:
setAdaptiveCardJson
public void setAdaptiveCardJson(@Nullable String adaptiveCardJson)
アクティビティの [詳細] タイルのコンテンツ テキストを設定します。
パラメーター:
setAttribution
public void setAttribution(@Nullable UserActivityAttribution attribution)
アクティビティに関するグラフィカル情報を設定します。
パラメーター:
setAttributionDisplayText
public void setAttributionDisplayText(@Nullable String attributionDisplayText)
アクティビティ カードの上部バナーに表示されるテキストを設定します。
パラメーター:
setBackgroundColor
public void setBackgroundColor(@ColorInt int backgroundColor)
アクティビティ ビジュアルの背景色を設定します。
パラメーター:
setDescriptionText
public void setDescriptionText(@Nullable String description)
アクティビティの [詳細] タイルの説明テキストを設定します。
パラメーター:
setDisplayText
public void setDisplayText(@NonNull String displayText)
アクティビティの [詳細] タイルの表示テキストを設定します。
パラメーター: