From: SukHyung, Kang Date: Tue, 24 Oct 2017 07:42:45 +0000 (+0900) Subject: Add for API reference X-Git-Tag: preview1-00336~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dea1a442686b18208e0d1e08890eadfbf24c1bdb;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Add for API reference Change-Id: Idd066722716b4405df75012928e68c1df4bfb49e Signed-off-by: SukHyung, Kang --- diff --git a/src/Tizen.Applications.Common/Tizen.Applications/Bundle.cs b/src/Tizen.Applications.Common/Tizen.Applications/Bundle.cs index 768560784..8c6a08405 100755 --- a/src/Tizen.Applications.Common/Tizen.Applications/Bundle.cs +++ b/src/Tizen.Applications.Common/Tizen.Applications/Bundle.cs @@ -40,9 +40,11 @@ namespace Tizen.Applications /// The bundle constructor. /// /// Thrown when out of memory. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// + /// public Bundle() { _handle = Interop.Bundle.Create(); @@ -96,11 +98,13 @@ namespace Tizen.Applications /// /// The number of items in a bundle object. /// + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// bundle.AddItem("string", "a_string"); /// Console.WriteLine("There are {0} items in the bundle", bundle.Count); /// + /// public int Count { get @@ -112,6 +116,7 @@ namespace Tizen.Applications /// /// The keys in a bundle object. /// + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// bundle.AddItem("string1", "a_string1"); @@ -123,6 +128,7 @@ namespace Tizen.Applications /// Console.WriteLine(key); /// } /// + /// public IEnumerable Keys { get @@ -153,6 +159,7 @@ namespace Tizen.Applications /// /// The key to check for. /// true if the bundle contains the key, false otherwise. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// bundle.AddItem("string", "a_string"); @@ -162,6 +169,7 @@ namespace Tizen.Applications /// Console.WriteLine(aValue); /// } /// + /// public bool Contains(string key) { return _keys.Contains(key); @@ -175,11 +183,13 @@ namespace Tizen.Applications /// Thrown when the key already exists or when there is an invalid parameter. /// Thrown when a value is null. /// Thrown when out of memory or when the bundle instance has been disposed. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// byte[] byteArray = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; /// bundle.AddItem("byte_array", byteArray); /// + /// public void AddItem(string key, byte[] value) { if (value == null) @@ -200,11 +210,13 @@ namespace Tizen.Applications /// Thrown when the key already exists or when there is an invalid parameter. /// Thrown when a value is null. /// Thrown when out of memory or when the bundle instance has been disposed. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// byte[] byteArray = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; /// bundle.AddItem("byte_array", byteArray, 2, 3); /// + /// public void AddItem(string key, byte[] value, int offset, int count) { if (!_keys.Contains(key)) @@ -247,10 +259,12 @@ namespace Tizen.Applications /// The value of the item. /// Thrown when the key already exists or when there is an invalid parameter. /// Thrown when out of memory or when the bundle instance has been disposed. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// bundle.AddItem("string", "a_string"); /// + /// public void AddItem(string key, string value) { if (!_keys.Contains(key)) @@ -272,11 +286,13 @@ namespace Tizen.Applications /// The value of the item. /// Thrown when the key already exists or when there is an invalid parameter. /// Thrown when out of memory or when the bundle instance has been disposed. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// string[] stringArray = { "a", "b", "c" }; /// bundle.AddItem("string_array", stringArray); /// + /// public void AddItem(string key, IEnumerable value) { if (!_keys.Contains(key)) @@ -299,6 +315,7 @@ namespace Tizen.Applications /// The value of the bundle item. /// Thrown when the key does not exist or when there is an invalid parameter. /// Thrown when the bundle instance has been disposed. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// bundle.AddItem("string", "a_string"); @@ -312,6 +329,7 @@ namespace Tizen.Applications /// } /// } /// + /// public object GetItem(string key) { if (_keys.Contains(key)) @@ -369,6 +387,7 @@ namespace Tizen.Applications /// Thrown when the key does not exist or when there is an invalid parameter. /// Thrown when the value of the bundle item cannot be converted to the specified generic type. /// Thrown when the bundle instance has been disposed. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// string[] stringArray = { "a", "b", "c" }; @@ -388,6 +407,7 @@ namespace Tizen.Applications /// } /// } /// + /// public T GetItem(string key) { return (T)GetItem(key); @@ -400,6 +420,7 @@ namespace Tizen.Applications /// The value of the bundle item. If the key does not exist or the type of this parameter is incorrect, it is the default value for the value parameter type. /// true if an item with the key exists and if the value is the same type as the output value parameter, false otherwise. /// Thrown when the bundle instance has been disposed. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// byte[] byteArray = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; @@ -410,6 +431,7 @@ namespace Tizen.Applications /// Console.WriteLine("First item in the byte array: {0}", aByteArray[0]); /// } /// + /// public bool TryGetItem(string key, out byte[] value) { if (_keys.Contains(key) && Interop.Bundle.GetType(_handle, key) == (int)BundleType.Byte) @@ -435,6 +457,7 @@ namespace Tizen.Applications /// The value of the bundle item. If the key does not exist or the type of this parameter is incorrect, it is the default value for the value parameter type. /// true if an item with the key exists and if the value is the same type as the output value parameter, false otherwise. /// Thrown when the bundle instance has been disposed. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// bundle.AddItem("string", "a_string"); @@ -444,6 +467,7 @@ namespace Tizen.Applications /// Console.WriteLine(aString); /// } /// + /// public bool TryGetItem(string key, out string value) { if (_keys.Contains(key) && Interop.Bundle.GetType(_handle, key) == (int)BundleType.String) @@ -469,6 +493,7 @@ namespace Tizen.Applications /// The value of the bundle item. If the key does not exist or the type of this parameter is incorrect, it is the default value for the value parameter type. /// true if an item with the key exists and if the value is the same type as the output value parameter, false otherwise. /// Thrown when the bundle instance has been disposed. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// string[] stringArray = { "a", "b", "c" }; @@ -482,6 +507,7 @@ namespace Tizen.Applications /// } /// } /// + /// public bool TryGetItem(string key, out IEnumerable value) { if (_keys.Contains(key) && Interop.Bundle.GetType(_handle, key) == (int)BundleType.StringArray) @@ -508,6 +534,7 @@ namespace Tizen.Applications /// true if the item is of the specified type, false otherwise. /// Thrown when the key does not exist or when there is an invalid parameter. /// Thrown when the bundle instance has been disposed. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// string[] stringArray = { "a", "b", "c" }; @@ -522,6 +549,7 @@ namespace Tizen.Applications /// } /// } /// + /// public bool Is(string key) { if (_keys.Contains(key)) @@ -555,6 +583,7 @@ namespace Tizen.Applications /// true if the item is successfully found and removed, false otherwise (even if the item is not found). /// Thrown when there is an invalid parameter. /// Thrown when the bundle instance has been disposed. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// bundle.AddItem("string", "a_string"); @@ -566,6 +595,7 @@ namespace Tizen.Applications /// } /// } /// + /// public bool RemoveItem(string key) { if (_keys.Contains(key)) @@ -591,11 +621,13 @@ namespace Tizen.Applications /// The encoded bundle data. bundleRaw should be the returned value of Tizen.Applications.Bundle.Encode, otherwise this method will not succeed. /// Decoded Bundle object. /// Thrown when there is an invalid parameter. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// string bundleRaw = bundle.Encode(); /// Bundle data = bundle.Decode(bundleRaw); /// + /// public static Bundle Decode(string bundleRaw) { SafeBundleHandle handle; @@ -614,10 +646,12 @@ namespace Tizen.Applications /// /// Encoded bundle data in string. /// Thrown when out of memory or when the bundle instance has been disposed. + /// /// /// Tizen.Applications.Bundle bundle = new Tizen.Applications.Bundle(); /// string bundleRaw = bundle.Encode(); /// + /// public string Encode() { string bundleRaw;