Last active
January 15, 2019 18:41
-
-
Save cromica/cf059ee2e5b253a8c3bab5a5e2b2939c to your computer and use it in GitHub Desktop.
tell me provider sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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