コード例 #1
0
 /// <summary>
 /// Creates a new Keyboard  object with default text
 /// heading and hidden input flag if supplied.
 /// </summary>
 /// <param name="defaultText">default text entry.</param>
 /// <param name="heading">keyboard heading.</param>
 /// <param name="hidden">True for hidden text entry.</param>
 public Keyboard(string defaultText = null, string heading = null, bool hidden = false)
 {
     Instance.CallAssign(
         new PyFunction(PyModule.Xbmc, "Keyboard"),
         defaultText, heading, hidden
         );
 }
コード例 #2
0
 public PlayList(PlayListType type)
 {
     Instance.CallAssign(
         new PythonFunction(PyModule.Xbmc, "PlayList"),
         new List <object> {
         type.GetString()
     }
         );
 }
コード例 #3
0
ファイル: Keyboard.cs プロジェクト: mediabuff/KodiSharp
 /// <summary>
 /// Creates a new Keyboard  object with default text
 /// heading and hidden input flag if supplied.
 /// </summary>
 /// <param name="defaultText">default text entry.</param>
 /// <param name="heading">keyboard heading.</param>
 /// <param name="hidden">True for hidden text entry.</param>
 public Keyboard(string defaultText = null, string heading = null, bool hidden = false)
 {
     Instance.CallAssign(
         new PythonFunction(PyModule.Xbmc, "Keyboard"),
         new List <object> {
         defaultText, heading, hidden
     }
         );
 }
コード例 #4
0
ファイル: Addon.cs プロジェクト: mediabuff/KodiSharp
 /// <summary>
 /// Creates a new AddOn class.
 /// </summary>
 /// <param name="id">id of the addon as specified in addon.xml.
 /// If not specified, the running addon is used</param>
 public Addon(int?id = null)
 {
     Instance.CallAssign(
         new PythonFunction(PyModule.XbmcAddon, "Addon"),
         new List <object> {
         id
     }
         );
 }
コード例 #5
0
 public PlayList(PlayListType type)
 {
     Instance.CallAssign(
         _ctor,
         new List <object> {
         type.GetString()
     },
         EscapeFlags.None
         );
 }
コード例 #6
0
ファイル: ListItem.cs プロジェクト: devna13/KodiSharp
 /// <summary>
 ///
 /// </summary>
 /// <param name="label">Item's left label</param>
 /// <param name="label2">Item's right label</param>
 /// <param name="iconImage">Deprecated. Use setArt</param>
 /// <param name="thumbnailImage">Deprecated. Use setArt</param>
 /// <param name="path">path, activated when item is clicked.</param>
 /// <param name="url">The destination url</param>
 /// <param name="isFolder"></param>
 public ListItem(
     string label          = null,
     string label2         = null,
     string iconImage      = null,
     string thumbnailImage = null,
     string path           = null,
     string url            = "",
     bool isFolder         = false
     )
 {
     this.Url      = url;
     this.IsFolder = isFolder;
     Instance.CallAssign(
         new PythonFunction(PyModule.XbmcGui, "ListItem"),
         new List <object> {
         label, label2, iconImage, thumbnailImage, path
     }
         );
 }
コード例 #7
0
ファイル: ListItem.cs プロジェクト: blessingshawn/KodiSharp
        /// <summary>
        ///
        /// </summary>
        /// <param name="label">Item's left label</param>
        /// <param name="label2">Item's right label</param>
        /// <param name="iconImage">Deprecated. Use setArt</param>
        /// <param name="thumbnailImage">Deprecated. Use setArt</param>
        /// <param name="path">path, activated when item is clicked.</param>
        /// <param name="url">The destination url</param>
        /// <param name="isFolder"></param>
        public ListItem(
            string label                 = null,
            string label2                = null,
            string iconImage             = null,
            string thumbnailImage        = null,
            string path                  = null,
            string url                   = "",
            bool isFolder                = false,
            Dictionary <Art, string> art = null
            )
        {
            this.Url      = url;
            this.IsFolder = isFolder;
            Instance.CallAssign(
                _ctor,
                label, label2, iconImage, thumbnailImage, path
                );

            if (art != null)
            {
                SetArt(art);
            }
        }
コード例 #8
0
 /// <summary>
 /// Creates a new AddOn class.
 /// </summary>
 /// <param name="id">id of the addon as specified in addon.xml.
 /// If not specified, the running addon is used</param>
 public Addon(string id = null)
 {
     Instance.CallAssign(_ctor, id);
 }