Skip to content

Instantly share code, notes, and snippets.

@cromica
Last active January 15, 2019 18:41
Show Gist options
  • Save cromica/cf059ee2e5b253a8c3bab5a5e2b2939c to your computer and use it in GitHub Desktop.
Save cromica/cf059ee2e5b253a8c3bab5a5e2b2939c to your computer and use it in GitHub Desktop.
tell me provider sample
[TellMeProvider]
public class QuickInfoTellMeProvider : ITellMeProvider
{
public string Name => "QuickInfo tell me provider";
public AbstractTellMeAction[] ProviderActions => new QuickInfoTellMeAction[]
{
new QuickInfoTellMeAction
{
Keywords = new string[] { "quick", "info", "quickinfo" }
}
};
}
public class QuickInfoTellMeAction : AbstractTellMeAction
{
public QuickInfoTellMeAction()
{
Name = "QuickInfo action";
}
public override bool IsAvailable => true;
public override string Category => "QuickInfo results";
public override Icon Icon => PluginResources.info_1930258;
public override void Execute()
{
Process.Start("https://appstore.sdl.com/language/app/sdl-quickinfo/938/");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment