Methods Summary |
---|
public Phone | getPhone()Obtain the {@code Phone} associated with this {@code InCallService}.
return mPhone;
|
public android.os.IBinder | onBind(android.content.Intent intent)
return new InCallServiceBinder();
|
public void | onPhoneCreated(Phone phone)Invoked when the {@code Phone} has been created. This is a signal to the in-call experience
to start displaying in-call information to the user. Each instance of {@code InCallService}
will have only one {@code Phone}, and this method will be called exactly once in the lifetime
of the {@code InCallService}.
|
public void | onPhoneDestroyed(Phone phone)Invoked when a {@code Phone} has been destroyed. This is a signal to the in-call experience
to stop displaying in-call information to the user. This method will be called exactly once
in the lifetime of the {@code InCallService}, and it will always be called after a previous
call to {@link #onPhoneCreated(Phone)}.
|
public boolean | onUnbind(android.content.Intent intent)
if (mPhone != null) {
Phone oldPhone = mPhone;
mPhone = null;
oldPhone.destroy();
onPhoneDestroyed(oldPhone);
}
return false;
|