}
/// <summary>
- /// A method which invoke a App Control to the application of the AppID
+ /// A method which invoke an App Control to the application of the AppID
/// </summary>
/// <returns>a next state after App Control invocation</returns>
public string Execute()
public class AppShortcutInfo : ShortcutInfo
{
/// <summary>
- /// A application ID of the App Shortcut.
+ /// An application ID of the App Shortcut.
/// </summary>
public string AppID { get; set; }
/// <summary>
- /// A App Shortcut status.
+ /// An App Shortcut status.
/// </summary>
[XmlIgnore]
public string Status { get; set; }
}
/// <summary>
- /// A app installed time.
+ /// An app installed time.
/// </summary>
[XmlIgnore]
public DateTime Installed { get; set; }
namespace LibTVRefCommonPortable.DataModels
{
/// <summary>
- /// A interface defines behaviors that will be exported by inherited classes.
+ /// An interface defines behaviors that will be exported by inherited classes.
/// </summary>
public interface IAction
{
/// <summary>
- /// A method execute a action.
+ /// A method execute an action.
/// </summary>
/// <returns>A next statue of a Shortcut.</returns>
string Execute();
namespace LibTVRefCommonPortable.DataModels
{
+ /// <summary>
+ /// A Setting Shortcut information
+ /// </summary>
public class SettingShortcutInfo : ShortcutInfo
{
+ /// <summary>
+ /// Initialize State of a shortcut.
+ /// </summary>
public override void UpdateState()
{
SetCurrentState("default");
public abstract class ShortcutInfo : INotifyPropertyChanged
{
/// <summary>
- /// A event handler for handing property changed. </summary>
+ /// An event handler for handing property changed. </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// The TVHome shows the Pinned app list when the App Home Menu is pressed,
/// by invoking AppShortcutController's API to retrieve the pinned app list.
/// The TVApps shows the installed the Tizen UI apps in the main screen.
- /// To provides the installed apps, the TVApps invokes a AppShortcutController's API.
+ /// To provides the installed apps, the TVApps invokes an AppShortcutController's API.
/// </summary>
public class AppShortcutController
{
/// A method provides installed app list.
/// The returned app list has only Tizen UI apps not the system app or no display apps.
/// </summary>
- /// <returns>A installed app list.</returns>
+ /// <returns>An installed app list.</returns>
public async Task<IEnumerable<AppShortcutInfo>> GetInstalledApps()
{
List<AppShortcutInfo> appShortcutInfoList = new List<AppShortcutInfo>();
}
/// <summary>
- /// A method appends a All Apps Shortcut and a MediaHub Shortcut at first in the given App Shortcut list.
+ /// A method appends an All Apps Shortcut and a MediaHub Shortcut at first in the given App Shortcut list.
/// Actually this method is used for making the Pinned App Shortcut panel of the TVHome
/// </summary>
/// <seealso cref="GetDefaultShortcuts"/>
/// <seealso cref="GetPinnedAppsWithDefaultShortcuts"/>
- /// <param name="returnPinnedAppsInfo">A App Shortcut list contains the additional Shortcuts.</param>
+ /// <param name="returnPinnedAppsInfo">An App Shortcut list contains the additional Shortcuts.</param>
private void AddAllAppsAndMediaHubShortcut(ref List<ShortcutInfo> returnPinnedAppsInfo)
{
var allAppsShortcutInfo = new AppShortcutInfo()
}
/// <summary>
- /// A method appends a Add Pin Shortcut in the given App Shortcut list.
+ /// A method appends an Add Pin Shortcut in the given App Shortcut list.
/// </summary>
/// <seealso cref="GetDefaultShortcuts"/>
/// <seealso cref="GetPinnedAppsWithDefaultShortcuts"/>
- /// <param name="returnPinnedAppsInfo">A App Shortcut list contains the additional Shortcuts.</param>
+ /// <param name="returnPinnedAppsInfo">An App Shortcut list contains the additional Shortcuts.</param>
private void AppendAddPinShortcut(ref List<ShortcutInfo> returnPinnedAppsInfo)
{
var addPinShortcutInfo = new AppShortcutInfo()
}
/// <summary>
- /// A method provides a App Shortcut list which contains default App Shortcuts
+ /// A method provides an App Shortcut list which contains default App Shortcuts
/// such as the All Apps, the Media Hub, and the Add Pin.
/// </summary>
/// <returns>A default App Shortcut list.</returns>
{
/// <summary>
/// A class provides Recent Shortcut information to the ViewModel
- /// The Recent Shortcut can be a app which is recently used and
+ /// The Recent Shortcut can be an app which is recently used and
/// a content which is recently consumed in the TV.
/// </summary>
public class RecentShortcutController
/// <summary>
/// A method makes the app to be launched.
/// </summary>
- /// <param name="appID">A application ID of the targeted application.</param>
- /// <param name="extraData">A extra data for App Control invoking.</param>
+ /// <param name="appID">An application ID of the targeted application.</param>
+ /// <param name="extraData">An extra data for App Control invoking.</param>
/// <param name="fileUri">A file Uri to be opened.</param>
public static void SendLaunchRequest(string appID, IDictionary<string, string> extraData = null, string fileUri = null)
{
/// <summary>
/// A method sends a pin added notification App control to TVHome app.
/// </summary>
- /// <param name="addedAddID">A app ID of newly added.</param>
+ /// <param name="addedAddID">An app ID of newly added.</param>
public static void SendAppAddedNotificationToHome(string addedAddID)
{
if (DependencyService.Get<IAppControl>() == null)
private static IFileSystemWatcherAPIs fileSystemWatcher = DependencyService.Get<IFileSystemWatcherAPIs>();
/// <summary>
- /// A instance of AppShortcutStorage.
+ /// An instance of AppShortcutStorage.
/// </summary>
private static AppShortcutStorage instance = new AppShortcutStorage();
/// <summary>
- /// A instance of AppShortcutStorage.
+ /// An instance of AppShortcutStorage.
/// </summary>
public static AppShortcutStorage Instance
{
/// </summary>
private AppShortcutStorage()
{
- // TODO : Make this working properly, a accessing below directory is not permitted.
+ // TODO : Make this working properly, an accessing below directory is not permitted.
//return DependencyService.Get<IFileSystemAPIs>()?.AppDataStorage + "pinned_apps_info.xml";
StoragePath = DependencyService.Get<IFileSystemAPIs>()?.PlatformShareStorage + "pinned_apps_info.xml";
}
/// <summary>
- /// A method provides a App Shortcut list.
+ /// A method provides an app Shortcut list.
/// </summary>
- /// <returns>A App Shortcut list.</returns>
+ /// <returns>An app Shortcut list.</returns>
public static async Task<IEnumerable<AppShortcutInfo>> Read()
{
IFileSystemAPIs fileSystem = DependencyService.Get<IFileSystemAPIs>();
/// <summary>
/// A method updates App Shortcuts of the storage
/// </summary>
- /// <param name="pinnedAppInfo">A App Shortcuts that pinned by a user.</param>
+ /// <param name="pinnedAppInfo">An app Shortcuts that pinned by a user.</param>
/// <returns>A status of storage update.</returns>
public static bool Write(IEnumerable<AppShortcutInfo> pinnedAppInfo)
{
}
/// <summary>
- /// A method sets a event listener for the storage watcher
+ /// A method sets an event listener for the storage watcher
/// </summary>
- /// <param name="eventListener">A event handler for the storage event </param>
+ /// <param name="eventListener">An event handler for the storage event </param>
public void AddStorageChangedListener(EventHandler<EventArgs> eventListener)
{
fileSystemWatcher.CustomChanged += eventListener;
private static IDebuggingAPIs ism;
/// <summary>
- /// A instance of DebuggingUtils
+ /// An instance of DebuggingUtils
/// </summary>
private static readonly DebuggingUtils instance = new DebuggingUtils();
private class DefaultSM : IDebuggingAPIs
{
/// <summary>
- /// A method displays a error log.
+ /// A method displays an error log.
/// </summary>
- /// <param name="message"> A error message.</param>
+ /// <param name="message"> An error message.</param>
/// <param name="file"> A file name.</param>
/// <param name="func"> A function name.</param>
/// <param name="line"> A line number.</param>
}
/// <summary>
- /// A method displays a error message
+ /// A method displays an error message
/// </summary>
/// <param name="message"> A list of command line arguments.</param>
/// <param name="file"> A file name.</param>
namespace LibTVRefCommonPortable.Utils
{
/// <summary>
- /// A interface for App Control feature
+ /// An interface for App Control feature
/// </summary>
public interface IAppControl
{
void SendLaunchRequest(string appId, IDictionary<string, string> extraData, string fileUri);
/// <summary>
- /// A method sends a add pin request App Control to TVApps app.
+ /// A method sends add pin request App Control to TVApps app.
/// </summary>
void SendAddAppRequestToApps();
/// <summary>
/// A method sends a pin added notification App control to TVHome app.
/// </summary>
- /// <param name="addedAddID">A app ID of newly added.</param>
+ /// <param name="addedAddID">An app ID of newly added.</param>
void SendAppAddedNotificationToHome(string addedAddID);
}
}
namespace LibTVRefCommonPortable.Utils
{
/// <summary>
- /// A Interface for app life management.
+ /// An interface for app life management.
/// </summary>
public interface IAppLifeControl
{
public String InstanceLabel;
/// <summary>
- /// A app ID
+ /// An app ID
/// </summary>
public String AppID;
/// <summary>
- /// A app label
+ /// An app label
/// </summary>
public String Applabel;
/// <summary>
- /// A app icon path
+ /// An app icon path
/// </summary>
public String IconPath;
}
/// <summary>
- /// A interface for Application Manager feature
+ /// An interface for Application Manager feature
/// </summary>
public interface IApplicationManagerAPIs
{
/// <summary>
/// A method provides installed application list.
/// </summary>
- /// <returns>A installed application list</returns>
+ /// <returns>An installed application list</returns>
Task<Dictionary<string, string[]>> GetAllInstalledApplication();
/// <summary>
/// <summary>
/// A method provides application information which is matched with the given app ID.
/// </summary>
- /// <param name="applicationId">A application ID</param>
- /// <returns>A installed application information</returns>
+ /// <param name="applicationId">An application ID</param>
+ /// <returns>An installed application information</returns>
Dictionary<string, string> GetInstalledApplication(string applicationId);
/// <summary>
/// <summary>
/// A method for removing the specified recent application
/// </summary>
- /// <param name="appId">A application ID</param>
+ /// <param name="appId">An application ID</param>
void DeleteRecentApplication(string appId);
/// <summary>
namespace LibTVRefCommonPortable.Utils
{
/// <summary>
- /// A interface contains debugging methods which are using platform subsystems.
+ /// An interface contains debugging methods which are using platform subsystems.
/// </summary>
/// <remarks>
/// Implementing this class should be occurred in platform project.
- /// Also the implementation should be registered to the DependencyService in a app initialization.
+ /// Also the implementation should be registered to the DependencyService in an app initialization.
/// Please refer to Xamarin Dependency Service
/// https://developer.xamarin.com/guides/xamarin-forms/dependency-service/introduction/
/// </remarks>
void Popup(string message);
/// <summary>
- /// A method displays a error log. </summary>
- /// <param name="message"> A error message.</param>
+ /// A method displays an error log. </summary>
+ /// <param name="message"> An error message.</param>
/// <param name="file"> A file name.</param>
/// <param name="func"> A function name.</param>
/// <param name="line"> A line number.</param>
namespace LibTVRefCommonPortable.Utils
{
/// <summary>
- /// A enumeration for the file open mode.
+ /// An enumeration for the file open mode.
/// </summary>
public enum UtilFileMode
{
}
/// <summary>
- /// A interface for the file operations
+ /// An interface for the file operations
/// </summary>
public interface IFileSystemAPIs
{
/// A method opens a file on the given mode.
/// </summary>
/// <param name="filePath">A file path</param>
- /// <param name="mode">A opening mode</param>
+ /// <param name="mode">An opening mode</param>
/// <returns>A file descriptor</returns>
Stream OpenFile(string filePath, UtilFileMode mode);
/// A method checks if a file existence in the file system.
/// </summary>
/// <param name="filePath">A file path</param>
- /// <returns>A existence of the file</returns>
+ /// <returns>An existence of the file</returns>
bool IsFileExist(String filePath);
/// <summary>
namespace LibTVRefCommonPortable.Utils
{
/// <summary>
- /// A interface for the file system watcher.
+ /// An interface for the file system watcher.
/// </summary>
public interface IFileSystemWatcherAPIs
{
namespace LibTVRefCommonPortable.Utils
{
/// <summary>
- /// A information of recently played media content
+ /// An information of recently played media content
/// </summary>
public struct RecentlyPlayedMedia
{
/// <summary>
- /// A id of media content
+ /// An ID of media content
/// </summary>
public string MediaId;
}
/// <summary>
- /// A interface for getting recently played media contents.
+ /// An interface for getting recently played media contents.
/// </summary>
public interface IMediaContentAPIs
{
namespace LibTVRefCommonPortable.Utils
{
/// <summary>
- /// A interface for package manager subsystem.
+ /// An interface for package manager subsystem.
/// </summary>
public interface IPackageManager
{
bool UninstallPackage(string pkgID);
/// <summary>
- /// A method remove the package by using a app ID.
+ /// A method remove the package by using an app ID.
/// </summary>
- /// <param name="appID">A app ID</param>
+ /// <param name="appID">an app ID</param>
/// <returns>A status of uninstall</returns>
bool UninstallPackageByAppID(string appID);
namespace LibTVRefCommonPortable.Utils
{
/// <summary>
- /// A interface for the platform notification.
+ /// An interface for the platform notification.
/// </summary>
public interface IPlatformNotification
{
void OnMenuKeyPressed();
/// <summary>
- /// A method will be called if a app is installed.
+ /// A method will be called if an app is installed.
/// </summary>
/// <param name="pkgID">A package ID of newly installed.</param>
void OnAppInstalled(string pkgID);
/// <summary>
- /// A method will be called if a app is uninstalled.
+ /// A method will be called if an app is uninstalled.
/// </summary>
/// <param name="pkgID">A package ID of uninstalled.</param>
void OnAppUninstalled(string pkgID);
void OnPinAppRequestReceived();
/// <summary>
- /// A method will be called if the app gets a app pinned notification App Control request.
+ /// A method will be called if the app gets an app pinned notification App Control request.
/// </summary>
/// <param name="appID">A pinned app ID</param>
void OnAppPinnedNotificationReceived(string appID);
namespace LibTVRefCommonPortable.Utils
{
/// <summary>
- /// A interface for getting system setting informations.
+ /// An interface for getting system setting informations.
/// </summary>
public interface ISystemSettings
{
namespace LibTVRefCommonPortable.Utils
{
/// <summary>
- /// A interface for the TVHomeImpl class
+ /// An interface for the TVHomeImpl class
/// The Models' instances in the TVHomeImpl class,
/// so to use the Models from other files, it should access the instance of the TVHomeImpl.
/// To reduce dependency between the TVHome and any other file,
public interface ITVHome
{
/// <summary>
- /// A instance of the AppShortcutController
+ /// An instance of the AppShortcutController
/// </summary>
/// <see cref="AppShortcutController"/>
AppShortcutController AppShortcutControllerInstance
}
/// <summary>
- /// A instance of the RecentShortcutController
+ /// An instance of the RecentShortcutController
/// </summary>
/// <see cref="RecentShortcutController"/>
RecentShortcutController RecentShortcutControllerInstance
namespace LibTVRefCommonPortable.Utils
{
/// <summary>
- /// A interface for the Window management.
+ /// An interface for the Window management.
/// </summary>
public interface IWindowAPIs
{
}
/// <summary>
- /// A method remove the package by using a app ID.
+ /// A method remove the package by using an app ID.
/// </summary>
- /// <param name="appID">A app ID</param>
+ /// <param name="appID">An app ID</param>
/// <returns>A status of uninstall</returns>
public static bool UninstallPackageByAppID(string appID)
{
/// <summary>
/// A method deletes a Recent Shortcut.
/// </summary>
- /// <param name="appId">A application ID</param>
+ /// <param name="appId">An application ID</param>
public static void Delete(string appId)
{
IApplicationManagerAPIs applicationManagerPort = DependencyService.Get<IApplicationManagerAPIs>();
public class TVHomeImpl : ITVHome
{
/// <summary>
- /// A instance of the TVHomeImpl
+ /// An instance of the TVHomeImpl
/// </summary>
private static readonly TVHomeImpl instance = new TVHomeImpl();
/// <summary>
- /// A instance of the TVHomeImpl
+ /// An instance of the TVHomeImpl
/// </summary>
public static ITVHome GetInstance
{
}
/// <summary>
- /// A instance of the AppShortcutController
+ /// An instance of the AppShortcutController
/// </summary>
private static readonly AppShortcutController appShortcutController = new AppShortcutController();
public AppShortcutController AppShortcutControllerInstance
}
/// <summary>
- /// A instance of the RecentShortcutController
+ /// An instance of the RecentShortcutController
/// </summary>
private static readonly RecentShortcutController recentShortcutController = new RecentShortcutController();
public RecentShortcutController RecentShortcutControllerInstance
}
/// <summary>
- /// Clear all recent applications
+ /// Clears all recent applications
/// </summary>
public void DeleteAllRecentApplication()
{
/// <summary>
/// Removes the specified application with the app ID
/// </summary>
- /// <param name="appId">A application ID that is removed</param>
+ /// <param name="appId">An alication ID that is removed</param>
public void DeleteRecentApplication(string appId)
{
IEnumerable<RecentApplicationInfo> recentApps = ApplicationManager.GetRecentApplications();
}
/// <summary>
- /// Displays a error log message
+ /// Displays an error log message
/// </summary>
/// <param name="message"> A debugging message </param>
/// <param name="file"> A file name that debugging message is exist </param>
public class PackageManagerPort : IPackageManager
{
/// <summary>
- /// A interface for platform notification
+ /// An interface for platform notification
/// </summary>
private static IPlatformNotification Notification
{
/// <summary>
/// Updates border when Element is changed
/// </summary>
- /// <param name="args">A image element changed event's argument </param>
+ /// <param name="args">An image element changed event's argument </param>
protected override void OnElementChanged(ElementChangedEventArgs<Xamarin.Forms.Image> args)
{
base.OnElementChanged(args);
/// Updates border when ElementProperty is changed
/// </summary>
/// <param name="sender">The source of the event</param>
- /// <param name="args">A image element property changed event's argument </param>
+ /// <param name="args">An image element property changed event's argument </param>
protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs args)
{
if ((args.PropertyName == NinePatchImage.BorderBottomProperty.PropertyName)
private static Program instance;
/// <summary>
- /// A interface for the platform notification
+ /// An interface for the platform notification
/// </summary>
private IPlatformNotification notification;
using LibTVRefCommonPortable.DataModels;
using Tizen = Xamarin.Forms.PlatformConfiguration.Tizen;
/// <summary>
- /// A enumeration for AppItemCell icon size
+ /// An enumeration for AppItemCell icon size
/// </summary>
public enum IconSize
{
set { SetValue(IsItemFocusedProperty, value); }
}
+ /// <summary>
+ /// Identifies the PinCommand bindable property
+ /// </summary>
public static readonly BindableProperty PinCommandProperty = BindableProperty.Create("PinCommand", typeof(ICommand), typeof(AppItemCell));
+ /// <summary>
+ /// A command will be executed if pin item in context popup is clicked
+ /// </summary>
public ICommand PinCommand
{
get { return (ICommand)GetValue(PinCommandProperty); }
set { SetValue(PinCommandProperty, value); }
}
+ /// <summary>
+ /// Identifies the DeleteCommand bindable property
+ /// </summary>
public static readonly BindableProperty DeleteCommandProperty = BindableProperty.Create("DeleteCommand", typeof(ICommand), typeof(AppItemCell));
+ /// <summary>
+ /// A command will be executed if delete item in context popup is clicked
+ /// </summary>
public ICommand DeleteCommand
{
get { return (ICommand)GetValue(DeleteCommandProperty); }
set { SetValue(DeleteCommandProperty, value); }
}
+ /// <summary>
+ /// Identifies the ToDefaultCommand bindable property
+ /// </summary>
public static readonly BindableProperty ToDefaultCommandProperty = BindableProperty.Create("ToDefaultCommand", typeof(ICommand), typeof(AppItemCell));
+ /// <summary>
+ /// A command will be executed if context popup is dismissed
+ /// </summary>
public ICommand ToDefaultCommand
{
get { return (ICommand)GetValue(ToDefaultCommandProperty); }
set { SetValue(ToDefaultCommandProperty, value); }
}
-
+ /// <summary>
+ /// Identifies the AppDescription bindable property
+ /// </summary>
public static readonly BindableProperty AppDescriptionProperty = BindableProperty.Create("AppDescription", typeof(StateDescription), typeof(AppItemCell));
+ /// <summary>
+ /// Gets or sets current StateDescription
+ /// </summary>
public StateDescription AppDescription
{
get { return (StateDescription)GetValue(AppDescriptionProperty); }
}
private int height16 = SizeUtils.GetHeightSize(16);
-
private int height32 = SizeUtils.GetHeightSize(32);
-
private int height84 = SizeUtils.GetHeightSize(84);
-
private int height100 = SizeUtils.GetHeightSize(100);
-
- /// <summary>
- /// 144 px height size
- /// </summary>
private int height144 = SizeUtils.GetHeightSize(144);
-
private int height271 = SizeUtils.GetHeightSize(271);
-
private int height284 = SizeUtils.GetHeightSize(284);
-
private int height300 = SizeUtils.GetHeightSize(300);
+ /// <summary>
+ /// A flag indicates whether the context popup is showing or not
+ /// </summary>
private bool isPopupShowing = false;
/// <summary>
}
+ /// <summary>
+ /// Initializes Layout width and height
+ /// </summary>
private void InitializeSize()
{
int Width240 = SizeUtils.GetWidthSize(240);
length: 167,
finished: (a, b) =>
{
- if (IsChecked) {
+ if (IsChecked)
+ {
StrokeImage.FadeTo(0.99, 167);
DimImage.FadeTo(0.99, 167);
StrokeImage.ScaleTo(1.195, 167);
DimImage.ScaleTo(1.195, 167);
}
+
ButtonImage.ScaleTo(1.195, 167);
TextArea.TranslateTo(0.0, height300, 167);
});
}
}
+ /// <summary>
+ /// Initializes and shows context popup
+ /// </summary>
private void ShowContextPopup()
{
if (isPopupShowing)
AppLowerList.IsVisible = false;
NoContentsView.IsVisible = true;
}
+
if (OnChangeFocusChainingCommand != null)
{
OnChangeFocusChainingCommand.Execute("");
/// <summary>
/// A method scrolls the list with spacing
/// </summary>
- /// <param name="index">A index of focused item cell</param>
+ /// <param name="index">An index of focused item cell</param>
private async void ScrollToIndex(int index)
{
if (AppUpperList.Children.Count > index)
public class App : Application, IPlatformNotification
{
/// <summary>
- /// A event handler for handling MenuKey event
+ /// An event handler for handling MenuKey event
/// </summary>
private static EventHandler<TVAppsEventArgs> MenuKeyListener;
/// <summary>
- /// A event handler for handling AppInstalled event
+ /// An event handler for handling AppInstalled event
/// </summary>
private static EventHandler<TVAppsEventArgs> AppInstalledListener;
/// <summary>
- /// A event handler for handling AppUninstalled event
+ /// An event handler for handling AppUninstalled event
/// </summary>
private static EventHandler<TVAppsEventArgs> AppUninstalledListener;
/// <summary>
- /// A event handler for handling PinApp request for TV Home
+ /// An event handler for handling PinApp request for TV Home
/// </summary>
private static EventHandler<TVAppsEventArgs> PinAppRequestListener;
}
/// <summary>
- /// A method will be called if a app is installed.
+ /// A method will be called if an app is installed.
/// </summary>
/// <param name="pkgID">A package ID of newly installed.</param>
public void OnAppInstalled(string pkgID)
}
/// <summary>
- /// A method will be called if a app is uninstalled.
+ /// A method will be called if an app is uninstalled.
/// </summary>
/// <param name="pkgID">A package ID of uninstalled.</param>
public void OnAppUninstalled(string pkgID)
}
/// <summary>
- /// A method will be called if the app gets a app pinned notification App Control request.
+ /// A method will be called if the app gets an app pinned notification App Control request.
/// </summary>
/// <param name="appID">A pinned app ID</param>/// <summary>
public void OnAppPinnedNotificationReceived(string appID)
/// A method compares two labels of AppShortcutInfo
/// Sorts AppShortcutInfo by label in ascending
/// </summary>
- /// <param name="left">A AppShortcutInfo to be compared with right</param>
- /// <param name="right">A AppShortcutInfo to be compared with left</param>
+ /// <param name="left">An AppShortcutInfo to be compared with right</param>
+ /// <param name="right">An AppShortcutInfo to be compared with left</param>
/// <returns>
/// left precedes right, return lesser than 0.
/// left follows right, return greater than 0.
/// A method compares two labels of AppShortcutInfo
/// Sorts AppShortcutInfo by label in descending
/// </summary>
- /// <param name="left">A AppShortcutInfo to be compared with right</param>
- /// <param name="right">A AppShortcutInfo to be compared with left</param>
+ /// <param name="left">An AppShortcutInfo to be compared with right</param>
+ /// <param name="right">An AppShortcutInfo to be compared with left</param>
/// <returns>
/// If left precedes right, return greater than 0.
/// If left follows right, return lesser than 0.
/// A method compares two installed dates of AppShortcutInfo
/// Sorts AppShortcutInfo by installed date in descending
/// </summary>
- /// <param name="left">A AppShortcutInfo to be compared with right</param>
- /// <param name="right">A AppShortcutInfo to be compared with left</param>
+ /// <param name="left">An AppShortcutInfo to be compared with right</param>
+ /// <param name="right">An AppShortcutInfo to be compared with left</param>
/// <returns>
/// If left precedes right, return greater than 0.
/// If left follows right, return lesser than 0.
namespace TVApps.ViewModels
{
/// <summary>
- /// A interface for TV Apps MainPageViewModel feature
+ /// An interface for TV Apps MainPageViewModel feature
/// </summary>
interface IAppsViewModel
{
namespace TVApps.ViewModels
{
/// <summary>
- /// A enumeration for status of TV Apps
+ /// An enumeration for status of TV Apps
/// </summary>
public enum AppsStatus
{
};
/// <summary>
- /// A enumeration for flag how to sort
+ /// An enumeration for flag how to sort
/// </summary>
public enum SortingOptions
{
class MainPageViewModel : INotifyPropertyChanged, IAppsViewModel
{
/// <summary>
- /// A instance of AppsHolder for getting application list
+ /// An instance of AppsHolder for getting application list
/// </summary>
AppsHolder appsHolder;
public ShortcutInfo FocusedItem { get; set; }
/// <summary>
- /// A event that is occurred when property of MainPageViewModel is changed
+ /// An event that is occurred when property of MainPageViewModel is changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
pinnedAppCount = SumOfCheckedApp;
return;
}
+
additionalInfo.Opacity = 0;
additionalInfo.Children.Add(AppNameLabel);
additionalInfo.Children.Add(AfterLabel);
/// <summary>
/// A method for handling launched application
/// </summary>
- /// <param name="appId">A ID of launched application</param>
- /// <param name="instanceId">A instance ID of launched application</param>
+ /// <param name="appId">An ID of launched application</param>
+ /// <param name="instanceId">An instance ID of launched application</param>
private void AddedCallback(string appId, string instanceId)
{
EventHandler<Event> handler = AddRemoveEvent;
/// <summary>
/// A method for handling terminated application
/// </summary>
- /// <param name="appId">A ID of terminated application</param>
- /// <param name="instanceId">A instance ID of terminated application</param>
+ /// <param name="appId">An ID of terminated application</param>
+ /// <param name="instanceId">An instance ID of terminated application</param>
private void RemovedCallback(string appId, string instanceId)
{
EventHandler<Event> handler = AddRemoveEvent;
/// <summary>
/// A method for handling application screen is updated
/// </summary>
- /// <param name="appId">A ID of application that screen is updated</param>
- /// <param name="instanceId">A instance ID of application that screen is updated</param>
+ /// <param name="appId">An ID of application that screen is updated</param>
+ /// <param name="instanceId">An instance ID of application that screen is updated</param>
/// <param name="Filename">A path of application screen shot</param>
private void UpdatedCallback(string appId, string instanceId, string Filename)
{
/// <summary>
/// A method for handling screen update is skipped
/// </summary>
- /// <param name="appId">A ID of application that screen update is skipped</param>
- /// <param name="instanceId">A instance ID of application that screen update is skipped</param>
+ /// <param name="appId">An ID of application that screen update is skipped</param>
+ /// <param name="instanceId">An instance ID of application that screen update is skipped</param>
/// <param name="Filename">A path of application screen shot</param>
/// <returns>Returns finish code</returns>
private int SkipUpdateCallback(string appId, string instanceId, string Filename)
/// <summary>
/// A method requests updating application screen shot
/// </summary>
- /// <param name="instanceId">A instance ID of application</param>
+ /// <param name="instanceId">An instance ID of application</param>
public void RequestUpdate(string instanceId)
{
try
class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
{
/// <summary>
- /// A interface for the platform notification
+ /// An interface for the platform notification
/// </summary>
IPlatformNotification notification;
/// <summary>
/// </summary>
public ICommand OnClearAllCommand { get; set; }
+ /// <summary>
+ /// A Command changes Panel Button to default mode.
+ /// </summary>
public ICommand OnDefaultModeCommand { get; set; }
+ /// <summary>
+ /// A Command will be executed the option menus are showed.
+ /// </summary>
public ICommand OnShowOptionsCommand { get; set; }
/// <summary>
public static readonly string AppStatus = "appstatus";
/// <summary>
- /// A event handler for handling Home key pressed event
+ /// An event handler for handling Home key pressed event
/// </summary>
private static EventHandler<TVHomeEventArgs> HomeKeyListener;
/// <summary>
- /// A event handler for handling Menu key pressed event
+ /// An event handler for handling Menu key pressed event
/// </summary>
private static EventHandler<TVHomeEventArgs> MenuKeyListener;
/// <summary>
- /// A event handler for handling application installed event
+ /// An event handler for handling application installed event
/// </summary>
private static EventHandler<TVHomeEventArgs> AppInstalledListener;
/// <summary>
- /// A event handler for handling application uninstalled event
+ /// An event handler for handling application uninstalled event
/// </summary>
private static EventHandler<TVHomeEventArgs> AppUninstalledListener;
/// <summary>
- /// A event handler for handling application pinned event
+ /// An event handler for handling application pinned event
/// </summary>
private static EventHandler<TVHomeEventArgs> AppPinnedNotificationListener;
/// <summary>
/// A method for handling application installed event
/// </summary>
- /// <param name="pkgID">A installed package ID</param>
+ /// <param name="pkgID">An installed package ID</param>
public void OnAppInstalled(string pkgID)
{
DebuggingUtils.Dbg("[[[ App Installed ]]] " + pkgID);
namespace TVHome.ViewModels
{
/// <summary>
- /// A interface for TV Home MainPageViewModel
+ /// An interface for TV Home MainPageViewModel
/// </summary>
interface IHomeViewModel
{
public bool IsShowNoRecentContents { get; set; }
/// <summary>
- /// A event that is occurred when property of MainPageViewModel is changed
+ /// An event that is occurred when property of MainPageViewModel is changed
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
/// <summary>
/// Removes specified recent application and updates the list to Recent SubPanel
/// </summary>
- /// <param name="appId">A application ID</param>
+ /// <param name="appId">An application ID</param>
private void RemoveRecentApplication(string appId)
{
TVHomeImpl.GetInstance.RecentShortcutControllerInstance.Remove(appId);
/// <summary>
/// A method for unpin application
/// </summary>
- /// <param name="appId">A application ID for unpin</param>
+ /// <param name="appId">An application ID for unpin</param>
private void UnpinAppShortcutInfo(string appId)
{
RemovePinnedApp(appId);
/// <summary>
/// A method for remove pinned application
/// </summary>
- /// <param name="appID">A ID of application for removing from pinned application list</param>
+ /// <param name="appID">An ID of application for removing from pinned application list</param>
private async void RemovePinnedApp(string appID)
{
Dictionary<string, string> PinnedApps = await TVHomeImpl.GetInstance.AppShortcutControllerInstance.GetPinnedAppsAppIDs();
}
/// <summary>
- /// Uniconifies the Home screen(Maximize the Home screen)
+ /// Uniconifies the Home screen(Maximizes the Home screen)
/// </summary>
private async void Uniconified()
{
}
/// <summary>
- /// A event handler for handling property changed event
+ /// An event handler for handling property changed event
/// </summary>
/// <param name="sender">The source of the event</param>
/// <param name="e">The event that is occurred when property is changed</param>
/// <summary>
/// A method for getting focusable element of Panel Button
/// </summary>
- /// <param name="index">A index of panel button to get</param>
+ /// <param name="index">An index of panel button to get</param>
/// <returns>A Button element of Panel Button</returns>
public Button GetButtonToFocusing(int index)
{
/// <summary>
/// A method for setting focus to Panel Button
/// </summary>
- /// <param name="index">A index of Panel Button to set focus</param>
+ /// <param name="index">An index of Panel Button to set focus</param>
public void SetButtonFocus(int index)
{
var button = PanelButtonGrid.Children[index];
button.FindByName<Button>("ButtonFocusArea").Focus();
}
-
+ /// <summary>
+ /// A method for handling when menu key is pressed
+ /// </summary>
public override void MenuKeyPressed()
{
}
+ /// <summary>
+ /// A method for handling to hide panel without animation
+ /// </summary>
public override void ForceHidePanel()
{
}
/// <summary>
/// A Event Handler invoker method.
/// </summary>
- /// <param name="e">A event argument. But this is always EventArgs.Empty</param>
+ /// <param name="e">An event argument. But this is always EventArgs.Empty</param>
protected virtual void OnItemSourceChanged(EventArgs e)
{
EventHandler handler = ItemSourceChanged;
/// A flag indicates whether the panel is focused or not
/// </summary>
public bool isFocused;
+
/// <summary>
/// A flag indicates whether the panel is move mode or not
/// </summary>
public bool isMoveMode;
+ /// <summary>
+ /// A flag indicates wheter the ContextPopup Menu is shown or not
+ /// </summary>
public bool isShowOptions;
/// <summary>
/// </summary>
private int selectTransitionHeight = SizeUtils.GetHeightSize(146);
+ /// <summary>
+ /// A method for getting Panel Buttons
+ /// </summary>
+ /// <returns>A list of panel button views</returns>
public IList<View> GetSubPanelButtons()
{
return PanelButtonStack.Children;
PropertyChanged += OnItemsSourcePropertyChanged;
}
-
+ /// <summary>
+ /// A method for handling when menu key is pressed
+ /// </summary>
public override void MenuKeyPressed()
{
isShowOptions = true;
}
}
}
+
/// <summary>
- /// A event handler for handling property changed event
+ /// An event handler for handling property changed event
/// </summary>
/// <param name="sender">A source of event</param>
/// <param name="e">The event that is occurred when property is changed</param>
/// <summary>
/// A method for moving the selected item to right
/// </summary>
- /// <param name="index">A index of item to be moved</param>
+ /// <param name="index">An index of item to be moved</param>
/// <param name="button">TODO : Comment this</param>
private void MoveItemToRight(int index, PanelButton button)
{
/// <summary>
/// A method for moving the selected item to left
/// </summary>
- /// <param name="index">A index of item to be moved</param>
+ /// <param name="index">An index of item to be moved</param>
/// <param name="button">TODO : Comment this</param>
private void MoveItemToLeft(int index, PanelButton button)
{
}
/// <summary>
- ///
+ /// A method for handling when menu key is pressed
/// </summary>
public override void MenuKeyPressed()
{
}
/// <summary>
- /// A event handler for handling property changed event
+ /// An event handler for handling property changed event
/// </summary>
/// <param name="sender">A source of event</param>
/// <param name="e">The event that is occurred when property is changed</param>