次の方法で共有


UserActivityVisualElements クラス

  • java.lang.Object
    • NativeBase
      • com.microsoft.connecteddevices.userdata.useractivities.UserActivityVisualElements

public class UserActivityVisualElements

このクラスには、**UserActivity** の [詳細] タイルに表示できる、説明やアイコンなどの視覚的な情報が含まれています。

メソッドの概要

修飾子と型 メソッドと説明
String getAdaptiveCardJson()

アクティビティのコンテンツ テキストを取得します。

UserActivityAttribution 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()

アクティビティのコンテンツ テキストを取得します。

戻り値:

アダプティブ カードの json 文字列。

getAttribution

public UserActivityAttribution getAttribution()

アクティビティのグラフィカル情報を取得します。

戻り値:

関連付けられている **UserActivityAttribution**。

getAttributionDisplayText

public String getAttributionDisplayText()

アクティビティ カードの上部バナーのテキストを取得します。

戻り値:

バナー テキスト文字列。

getBackgroundColor

public int getBackgroundColor()

アクティビティ ビジュアルの背景色を取得します

戻り値:

アクティビティ ビジュアルの背景色。

getDescriptionText

public String getDescriptionText()

は、アクティビティの説明テキストを取得します。

戻り値:

説明テキスト。

getDisplayText

public String getDisplayText()

アクティビティの表示テキストを取得します。

戻り値:

表示テキスト。

setAdaptiveCardJson

public void setAdaptiveCardJson(@Nullable String adaptiveCardJson)

アクティビティの [詳細] タイルのコンテンツ テキストを設定します。

パラメーター:

adaptiveCardJson - アダプティブ カードの json 文字列。

setAttribution

public void setAttribution(@Nullable UserActivityAttribution attribution)

アクティビティに関するグラフィカル情報を設定します。

パラメーター:

attribution - 設定する **UserActivityAttribution** です。

setAttributionDisplayText

public void setAttributionDisplayText(@Nullable String attributionDisplayText)

アクティビティ カードの上部バナーに表示されるテキストを設定します。

パラメーター:

attributionDisplayText - バナー テキスト文字列。

setBackgroundColor

public void setBackgroundColor(@ColorInt int backgroundColor)

アクティビティ ビジュアルの背景色を設定します。

パラメーター:

backgroundColor - アクティビティ ビジュアルの背景色。

setDescriptionText

public void setDescriptionText(@Nullable String description)

アクティビティの [詳細] タイルの説明テキストを設定します。

パラメーター:

description - 説明テキスト。

setDisplayText

public void setDisplayText(@NonNull String displayText)

アクティビティの [詳細] タイルの表示テキストを設定します。

パラメーター:

displayText - 表示テキスト。

適用対象