Esempio n. 1
0
		/// <summary>
		/// Returns a new or existing instance with the specified capitalization
		/// and correction properties.
		/// </summary>
		/// <remarks>
		/// Returns a new or existing instance with the specified capitalization
		/// and correction properties.
		/// </remarks>
		/// <param name="cap">when, if ever, to automatically capitalize.</param>
		/// <param name="autotext">whether to automatically do spelling corrections.</param>
		public static android.text.method.TextKeyListener getInstance(bool autotext, android.text.method.TextKeyListener
			.Capitalize cap)
		{
			int off = (int)(cap) * 2 + (autotext ? 1 : 0);
			if (sInstance[off] == null)
			{
				sInstance[off] = new android.text.method.TextKeyListener(cap, autotext);
			}
			return sInstance[off];
		}
Esempio n. 2
0
        /// <summary>
        /// Returns a new or existing instance with the specified capitalization
        /// and correction properties.
        /// </summary>
        /// <remarks>
        /// Returns a new or existing instance with the specified capitalization
        /// and correction properties.
        /// </remarks>
        /// <param name="cap">when, if ever, to automatically capitalize.</param>
        /// <param name="autotext">whether to automatically do spelling corrections.</param>
        public static android.text.method.TextKeyListener getInstance(bool autotext, android.text.method.TextKeyListener
                                                                      .Capitalize cap)
        {
            int off = (int)(cap) * 2 + (autotext ? 1 : 0);

            if (sInstance[off] == null)
            {
                sInstance[off] = new android.text.method.TextKeyListener(cap, autotext);
            }
            return(sInstance[off]);
        }