I have integrated Google Calendar API and able to create meetings properly. Since google also allows for creation of Google Meet conferences through Google Calendar API - I have been trying to access the ConferenceData object throught the event object from the Calendar API. ConferenceData as such is being referenced everywhere on StackOverflow but am unable to connect it to a library on Android Studio - am building the app in Kotlin so a java/kotlin solution works.
below is the code I am using
val event = Event().setSummary("Event")
.setDescription(eventDes.toString())
val _startTime = createCal(booking)
val startEvent = EventDateTime()
.setDateTime(DateTime(_startTime.time))
//add duration to start date to get end date
_startTime.add(Calendar.MINUTE, booking.getduration()!!.toInt())
val endEvent = EventDateTime()
.setDateTime(DateTime(_startTime.time))
event.start = startEvent
event.end = endEvent
event.location = ""
val map = HashMap<String, String>()
map["priority"] = "High"
event.extendedProperties = Event.ExtendedProperties()
event.extendedProperties.private = map
Can anybody guide as to the right way to access and use the ConferenceData object for Google Meet? ConferenceData is currently unrecognized...
Any inputs will be great
Thanks