Plugin.SecureStorage.SecureStorageImplementation.AddRecord C# (CSharp) Method

AddRecord() private method

Adds the record of type GenericPassword
private AddRecord ( string key, string val ) : SecStatusCode
key string Key.
val string Value.
return SecStatusCode
        private SecStatusCode AddRecord(string key, string val)
        {
            var sr = new SecRecord(SecKind.GenericPassword);
            sr.Account = key;
            sr.ValueData = NSData.FromString(val);

            return SecKeyChain.Add(sr);
        }