CalendarContract.ActionHandleCustomEvent Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
<intent-filter>
<action android:name="android.provider.calendar.action.HANDLE_CUSTOM_EVENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/event" />
</intent-filter>
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.