Einhugur macOS Bridge plugin. |

# NSUserDefaults.IntegerForKey Method

Gets or sets Integer value for given key.

IntegerForKey(
key as String) as Integer
IntegerForKey(
key as String
assigns value as Integer)

#### Parameters

key
  Gets or sets Integer value for given key.
value (assignment parameter)
  The value to set.

#### Returns

Integer
  Returns the value for the requested key or 0 if key was not found or if the key did not contain Integer value.

#### Remarks

#### See Also

NSUserDefaults Class