1// isEligibleForPrediction 2// https://developer.apple.com/documentation/foundation/nsuseractivity/2980674-iseligibleforprediction 3 4export type UserActivity = { 5 id?: string; 6 /** 7 * The activity title should be clear and concise. This text describes the content of the link, like “Photo taken on July 27, 2020” or “Conversation with Maria”. Use nouns for activity titles. 8 */ 9 title?: string; 10 description?: string; 11 webpageURL?: string; 12 keywords?: string[]; 13 // TODO: Get this automatically somehow 14 activityType: string; 15 // TODO: Maybe something like robots.txt? 16 phrase?: string; 17 18 thumbnailURL?: string; 19 20 userInfo?: Record<string, string>; 21 22 isEligibleForHandoff?: boolean; 23 isEligibleForPrediction?: boolean; 24 isEligibleForSearch?: boolean; 25 26 /** Local file path for an image */ 27 imageUrl?: string; 28 darkImageUrl?: string; 29 dateModified?: Date; 30 expirationDate?: Date; 31}; 32 33export const ExpoHead: { 34 activities: { 35 INDEXED_ROUTE: string; 36 }; 37 getLaunchActivity(): UserActivity; 38 createActivity(userActivity: UserActivity): void; 39 clearActivitiesAsync(ids: string[]): Promise<void>; 40 suspendActivity(id: string): void; 41 revokeActivity(id: string): void; 42} | null = null; 43