GPCore - The Gibphone API

GPStateMethodAttribute Constructor 

Creates a new GPMethodAttribute.

[Visual Basic]
Public Sub New( _
   ByVal String As String, _
   ByVal Type As Type, _
   ByVal Object As Object, _
   ByVal Boolean As Boolean, _
   ByVal String As String _
)
[C#]
public GPStateMethodAttribute(
   String name,
   Type action,
   Object state,
   Boolean onstate,
   String methodname
);

Parameters

name
The Text that will be put in the menu.
action
What kind of feature is this. Presently Core only supports "Gib" or "Account".
state
A string representing an on/off type state.
onstate
True if you want to show this action when the state is equal to state; otherwise false.
methodname
The name of the state method to call.

See Also

GPStateMethodAttribute Class | GPCore.Attributes Namespace