/// <summary> /// @brief Create action item describing a custom return action /// /// When action is executed, the activity described by a <code>mode</code> parameter /// will be opened /// </summary> /// <param name="appInfo"> Sapa structure describing application </param> /// <param name="resId"> Id of drawable from resources of the given application </param> /// <param name="activityId"> Id of the activity to be opened /// </param> /// <returns> new instance of the FcActionItem </returns> public virtual FcActionItem newCustomReturnItem(SapaAppInfo appInfo, int resId, int activityId) { SapaApp app = appInfo.App; FcActionReturnItem item = new FcActionReturnItem(appInfo); item.Default = false; item.DrawableId = resId; item.ActionRunnable = newOpenActivityRunnable(app.PackageName, app.InstanceId, activityId); return(item); }
/// <summary> /// @brief Create action item describing a default return action /// /// When action is executed, the default activity of the application will be opened. /// </summary> /// <param name="appInfo"> Sapa structure describing owner of the action /// </param> /// <returns> new instance of the FcActionItem </returns> public virtual FcActionItem newDefaultReturnItem(SapaAppInfo appInfo) { SapaApp app = appInfo.App; FcActionReturnItem item = new FcActionReturnItem(appInfo); item.Default = true; item.DrawableId = mDefaultResId; item.ActionRunnable = newOpenActivityRunnable(app.PackageName, app.InstanceId, DEFAULT_ACTIVITY_ID); return(item); }
/// <summary> /// @brief Create action item describing a default return action /// /// When action is executed, the default activity of the application will be opened. /// </summary> /// <param name="appInfo"> Sapa structure describing owner of the action /// </param> /// <returns> new instance of the FcActionItem </returns> public virtual FcActionItem newDefaultReturnItem(SapaAppInfo appInfo) { SapaApp app = appInfo.App; FcActionReturnItem item = new FcActionReturnItem(appInfo); item.Default = true; item.DrawableId = mDefaultResId; item.ActionRunnable = newOpenActivityRunnable(app.PackageName, app.InstanceId, DEFAULT_ACTIVITY_ID); return item; }
/// <summary> /// @brief Create action item describing a custom return action /// /// When action is executed, the activity described by a <code>mode</code> parameter /// will be opened /// </summary> /// <param name="appInfo"> Sapa structure describing application </param> /// <param name="resId"> Id of drawable from resources of the given application </param> /// <param name="activityId"> Id of the activity to be opened /// </param> /// <returns> new instance of the FcActionItem </returns> public virtual FcActionItem newCustomReturnItem(SapaAppInfo appInfo, int resId, int activityId) { SapaApp app = appInfo.App; FcActionReturnItem item = new FcActionReturnItem(appInfo); item.Default = false; item.DrawableId = resId; item.ActionRunnable = newOpenActivityRunnable(app.PackageName, app.InstanceId, activityId); return item; }