CalendarContract.ActionHandleCustomEvent Field

Definition

Activity Action: Display the event to the user in the custom app as specified in EventsColumns#CUSTOM_APP_PACKAGE.

[Android.Runtime.Register("ACTION_HANDLE_CUSTOM_EVENT")]
public const string ActionHandleCustomEvent;
[<Android.Runtime.Register("ACTION_HANDLE_CUSTOM_EVENT")>]
val mutable ActionHandleCustomEvent : string

Field Value

Attributes

Remarks

Activity Action: Display the event to the user in the custom app as specified in EventsColumns#CUSTOM_APP_PACKAGE. The custom app will be started via Activity#startActivityForResult(Intent, int) and it should call Activity#setResult(int) with Activity#RESULT_OK or Activity#RESULT_CANCELED to acknowledge whether the action was handled or not.

The custom app should have an intent filter like the following:

&lt;intent-filter&gt;
               &lt;action android:name="android.provider.calendar.action.HANDLE_CUSTOM_EVENT" /&gt;
               &lt;category android:name="android.intent.category.DEFAULT" /&gt;
               &lt;data android:mimeType="vnd.android.cursor.item/event" /&gt;
            &lt;/intent-filter&gt;

Input: Intent#getData has the event URI. The extra #EXTRA_EVENT_BEGIN_TIME has the start time of the instance. The extra #EXTRA_CUSTOM_APP_URI will have the EventsColumns#CUSTOM_APP_URI.

Output: Activity#RESULT_OK if this was handled; otherwise Activity#RESULT_CANCELED.

Java documentation for android.provider.CalendarContract.ACTION_HANDLE_CUSTOM_EVENT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to