SliceManager.UnpinSlice(Uri) Method
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.
Remove a pin for a slice.
[Android.Runtime.Register("unpinSlice", "(Landroid/net/Uri;)V", "GetUnpinSlice_Landroid_net_Uri_Handler", ApiSince=28)]
public virtual void UnpinSlice (Android.Net.Uri uri);
[<Android.Runtime.Register("unpinSlice", "(Landroid/net/Uri;)V", "GetUnpinSlice_Landroid_net_Uri_Handler", ApiSince=28)>]
abstract member UnpinSlice : Android.Net.Uri -> unit
override this.UnpinSlice : Android.Net.Uri -> unit
Parameters
- uri
- Uri
The uri of the slice being unpinned.
- Attributes
Remarks
Remove a pin for a slice.
If the slice has no other pins/callbacks then the slice will be unpinned.
This may only be called by apps that are the default launcher for the device or the default voice interaction service. Otherwise will throw SecurityException
.
Java documentation for android.app.slice.SliceManager.unpinSlice(android.net.Uri)
.
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.