Język

IInsightVisualizerSession.CreateRemoteViewsForHints Method

Definition

Requests a RemoteViews visualization for the given set of hints and configuration.

[Android.Runtime.Register("createRemoteViewsForHints", "(Ljava/util/Set;Landroid/service/personalcontext/embedded/InsightVisualizerClientConfig;)Landroid/widget/RemoteViews;", "GetCreateRemoteViewsForHints_Ljava_util_Set_Landroid_service_personalcontext_embedded_InsightVisualizerClientConfig_Handler:Android.Service.PersonalContext.Embedded.IInsightVisualizerSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public Android.Widget.RemoteViews? CreateRemoteViewsForHints(System.Collections.Generic.ICollection<Android.App.PersonalContext.Hint.ContextHint> hints, Android.Service.PersonalContext.Embedded.InsightVisualizerClientConfig config);
[<Android.Runtime.Register("createRemoteViewsForHints", "(Ljava/util/Set;Landroid/service/personalcontext/embedded/InsightVisualizerClientConfig;)Landroid/widget/RemoteViews;", "GetCreateRemoteViewsForHints_Ljava_util_Set_Landroid_service_personalcontext_embedded_InsightVisualizerClientConfig_Handler:Android.Service.PersonalContext.Embedded.IInsightVisualizerSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member CreateRemoteViewsForHints : System.Collections.Generic.ICollection<Android.App.PersonalContext.Hint.ContextHint> * Android.Service.PersonalContext.Embedded.InsightVisualizerClientConfig -> Android.Widget.RemoteViews

Parameters

hints
ICollection<ContextHint>

the set of hints to generate a visualization for

config
InsightVisualizerClientConfig

the client surface configuration and sizing constraints

Returns

the RemoteViews containing the visualization, or null if a visualization cannot be generated

Attributes

Remarks

The framework requests views when the client first connects, when hints arrive, or when the client configuration changes. Requests for one session do not run concurrently.

The client configuration limits the available size. Content that exceeds the available height is clipped; content that exceeds the available width scrolls horizontally. Returning null ends the session.

Use VisualizerViewAction to attach personal context actions to individual views. Intents attached directly as click pending intents are not executed on a click.

Applies to