IsDefault

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Share Service >

IsDefault

Previous page Return to chapter overview Next page

Definition

Sets the default Share Service used when the type of sharing service is selected (email, Twitter, Facebook, etc).

 

For example, if you are using two different Twitter adapters, you may set one to be the default when the user selects the Twitter sharing service.  Setting this property as the default would only apply to any Twitter adapters and would not apply to any other types of sharing services which have their own respective default adapter.

 

Property Value

A bool value that represents if the current adapter is default Share Service used for that type of sharing service.

 

Syntax

Default

 

 

Examples

ns


protected override void OnStateChange()

{                        

if (State == State.SetDefaults)

{

Default        = false;

}

}