Table of Contents

Class DVDParentalLevelChangedEventArgs

Namespace
VisioForge.Core.Types.Events
Assembly
VisioForge.Core.dll

Provides data for the DVD parental level changed event.

public class DVDParentalLevelChangedEventArgs : EventArgs

Inheritance

Inherited Members

Examples

player.OnDVDParentalLevelChanged += (sender, e) =>
{
    // Check if user has entered parental PIN
    if (!IsParentalPINVerified())
    {
        e.Allow = false; // Block access to higher-rated content
        ShowParentalPINDialog();
    }
    else
    {
        e.Allow = true; // Allow playback
    }
};

Remarks

This event is raised when the DVD player encounters content with a different parental level rating.

Parental levels are used in DVDs to restrict access to content based on age appropriateness.

The event allows applications to control whether the level change should be permitted based on user preferences or parental controls.

DVD parental levels typically range from 1 (General Audiences) to 8 (Adults Only).

Constructors

DVDParentalLevelChangedEventArgs(ref bool)

Initializes a new instance of the VisioForge.Core.Types.Events.DVDParentalLevelChangedEventArgs class.

public DVDParentalLevelChangedEventArgs(ref bool allow)

Parameters

allow bool

A reference to a boolean value indicating whether the parental level change should be allowed. true to permit the level change; false to block access.

Remarks

This constructor uses a reference parameter to allow event handlers to modify the allow decision.

The initial value typically reflects the default policy, which handlers can then override based on parental control settings.

This design pattern enables two-way communication between the DVD player and the application's parental control logic.

Properties

Allow

Gets a value indicating whether the parental level change is allowed.

public bool Allow { get; }

Property Value

bool

Remarks

This property determines whether the DVD player should proceed with content that has a different parental rating.

Applications can use this to implement parental control features by denying access to higher-rated content.

The value is typically set by the event handler based on user authentication or parental control settings.

See Also