OnShare()
<< Click to Display Table of Contents >> OnShare() |
This method is called when the user clicks OK on the Share window in NinjaTrader. This method can also be called by Alerts and general NinjaScript objects.
This method does not return a value
text |
The message being sent to the social network or other Share provider. This is what appears in the textbox of the Share window |
imageFilePath |
Optional path to screenshot or other image to be sent to the social network or other Share provider |
You must override the method in your Share Service with the following syntax.
public override void OnShare(string text, string imageFilePath) {
} |
public override void OnShare(string text, string imgFilePath) { // place your share service logic here } |